The previous post got a funny comment in Reddit: “Yawn. Hang on, inheritance, singletons? Bletch”. So I thought… “I may be getting rusty… let’s give those coroutines a try”. At first, coroutines seemed like a sure way of leaving behind all my (humble) OOP practices. I though they were some… Simple FSM-like structure using Coroutines in C# (Unity3D)Read more
Tag: Finite State Machine
A Finite State Machine in C# for Unity3D
Finite State Machines (FSMs) are pretty useful in many different contexts, as you may know if you are reading this. From a game menu to the complex behaviour of game entities, a nice FSM may improve your code’s readability and simplify its design. Or turn it into a hell of… A Finite State Machine in C# for Unity3DRead more