addState function

void addState (
  1. StateBase stateInstance
)

This method is usefull to add a state passing stateInstance on demand.

Implementation

void addState(StateBase stateInstance) {
  _store.addState(stateInstance);
}