Summary
In this chapter, we learned how to implement state machines in Unity3D based on a simple tank game. We first looked at how to implement FSM by using switch
statements. Then, we studied how to use a framework to make AI implementation easier to manage and extend.
In the next chapter, we will look at randomness and probability and see how we can use them to make the outcome of our games more unpredictable.