Tags: finite state machine, pure code
Today’s article introduces a small but capable and extensible finite state machine (FSM) that you can use to organize your Unity applications’ code. FSMs are commonly used to represent the different modes the app can be in—main menu, world map, gameplay, game over—and how the app transitions from one state to another. The FSM in today’s article follows the pure code methodology by not tying the code to game objects,
MonoBehaviours, or scenes. So read on to learn about and make use of this “pure code” FSM for Unity!
Read the rest of this article »