How to Code a Simple State Machine in Unity

Unity state machines are a sub-type of the State Pattern. These patterns can be utilized to control object behavior at runtime and have many different uses in games, simulations, artificial intelligence systems etc…

In this tutorial I will walk you through an introduction to using Unity’s state machine toolset for creating turn based battles with characters that take turns attacking one another!

By Infallible Code