Пример #1
0
 void Start()
 {
     if (CurrentState == null)
     {
         CurrentState = _availableStates.Values.First();
     }
 }
Пример #2
0
 public void SwitchStateTo(Type nextState)
 {
     CurrentState = _availableStates[nextState];
 }