public void ChangeState(EnemyState newState) { this.currentState.OnExit(); this.currentState = newState; this.currentState.OnEnter(); }
public void Start(EnemyState initialState) { this.currentState = initialState; this.currentState.OnEnter(); }