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