Implementing a State Machine pattern (among other things in Unity), with Minesweeper as an excuse.
State Machine Diagram.
Reordering an app workflow could be a complex task, separating the concerns between logic and UI, managing events. State Machine Pattern helps us with that, facilitating debug and maintenance.
Assets/Scripts/State/States
Assets/Scripts/State/UIStates
UIStates
run in conjunction with 'regular' states, decoupling UI concerns from the game logic.
- Use of my custom git Package - for singletons
- CameraManager that dynamically adjusts the Camera Height accordingly.