public void ChangeState(EnemyStates newState) { if (_currState != null) { _currState.Exit(); } _currState = newState; _currState.Enter(this); }
public void ChangeState(EnemyStates newState) { if (_currState != null) { _currState.Exit(); } _currState = newState; _currState.Enter(this); }