addState function

void addState (BaseState stateInstance)

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

Implementation

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