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