예제 #1
0
 public void ChangeState(BaseState state)
 {
     _curState.exit(this);
     _curState = state;
     _curState.enter(this);
 }
예제 #2
0
 private void Start()
 {
     _curState = idleState;
     ChangeState(idleState);
     _curPhase = 0;
 }