This is a collaborative post, written by Andrej Petelin and myself. After reading about the use of Animator Controller state machines as a general purpose state machine in Unity AI Game Programming, Second Edition by Ray Barrera, Aung Sithu Kyaw, Clifford Peters and Thet Naing Swe, we decided to try…