Tagged: patterns

A Finite State Machine in Unity
Split what a game object does into states with enter, update and exit steps, with a small generic state machine you can reuse in any MonoBehaviour.
Intermediate15 min
The Singleton Pattern in Unity
A generic singleton base class for managers that exist exactly once, a version that survives scene loads, and the traps to know about.
Beginner8 min