Ejemplo n.º 1
0
 void Start()
 {
     if (CurrentState == null)
     {
         CurrentState = _availableStates.Values.First();
     }
 }
Ejemplo n.º 2
0
 public void SwitchStateTo(Type nextState)
 {
     CurrentState = _availableStates[nextState];
 }