Esempio n. 1
0
    public void ChangeState(EnemyStates newState)
    {
        if (_currState != null)
        {
            _currState.Exit();
        }

        _currState = newState;
        _currState.Enter(this);
    }