State
State class is a representation of a possible state machine internal state.
Important Methods
Enter
The user can override this method to define what happens when the state machine enters this State.
Update
The user can override this method to define what happens every time that the state machine updates this State.
Exit
The user can override this method to define what happens when the state machine exits this State, but before it enters the next one.