Example #1
0
 void SwitchState(BossState newState)
 {
     if (_currentState != null)
     {
         _currentState.EndState();
     }
     _currentState = newState;
     _currentState.Setup(this);
 }