Add a new state to the state machine.
StateConfig. State names are Unique
Change states
to enter
set to true in order to call enterState without calling that state's onEnter() function
Send a signal to the statemachine to possibly change states
name of the signal
optional data
Add a new state to the state machine.