a Finite State Machine designed for Unity 2D