Esempio n. 1
0
 // Start is called before the first frame update
 void Start()
 {
     if (startDeactive)
     {
         currentState = deActiveState;
     }
     else
     {
         currentState = idleState;
     }
     currentState.EnterState(this);
 }
Esempio n. 2
0
 public void ActivateSwitch()
 {
     currentState = idleState;
     currentState.EnterState(this);
 }
Esempio n. 3
0
 public void TransitionToState(InterBaseState state)
 {
     currentState = state;
     currentState.EnterState(this);
 }