Development
Note
These pages detail a suggested implementation of a Model View Controller (MVC) design for Unity applications. Though this approach is very useful for most applications, programs made with Unity and other game engines are unavoidably built from stateful elements. The design approach must be adapted to account for this.
I generally suggest an adapted approach replacing the model with a Static Event Bus to maintain the value of separated data, logic, and visualization within the context of the engine:
- skeletal static class with minimal (no) logic dispatching events
- game objects as discrete stateful actors which act and are acted on
- notify static bus of actions
- respond to events provided by static bus
- visual elements belonging to and updated by game objects
- know as little as possible
-Twig