Create a Unity3D AI system using the State Pattern and State Machines. We’ll build an FSM (finite state machine) in c#, make it generic, reusable, and able to drive our AI bots.
State machines and AI are extremely important in game dev, so we’ll start with a simple switch based AI system then build it into a solid c# FSM that we can extend and build upon.
And if you’d like to follow along, all the c# source code for this unity tutorial is available below.
Download the code for this Unity3D tutorial here: https://unity3dcollege.blob.core.windows.net/patreon/DroneProject.zip