예제 #1
0
 public void ChangeState(HeroState newState)
 {
     currentState.OnExit();
     currentState = newState;
     currentState.OnEnter();
 }
예제 #2
0
 public void Start(HeroState initialState)
 {
     currentState = initialState;
     currentState.OnEnter();
 }