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