Tests if an FSM is in the specified state.
The game object that owns the state machine.
Optional name of the FSM on the game object.
Check to see if the FSM is in this state.
Event to send if the FSM is in the specified state.
Event to send if the FSM is not in the specified state.
Store the result of this test in a bool variable. Useful if other actions depend on this test.
Perform this action every frame. Useful if you want to wait for an FSM to be in a particular state before sending an event.