Beispiel #1
0
 public void RegisterState(StateMachineState state)
 {
     if (!stateMap.ContainsKey(state.GetType()))
     {
         state.SetStateMachine(this);
         stateMap.Add(state.GetType(), state);
     }
 }
Beispiel #2
0
 public void ChangeState(StateMachineState state, StateParams stateParams = null)
 {
     ChangeState(state.GetType(), stateParams);
 }
Beispiel #3
0
 public bool IsInState(System.Type type)
 {
     return(currentState.GetType() == type);
 }