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