Animation finite state machine

For this project, I worked on an animated finite-state machine. This FSM allows only specific inputs depending on what the current state of animation is for example from the ideal state you can go to any animation, but from jumping you can only go to the ideal state.