Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     currentState = state_idle;
     player       = FindObjectOfType <newPlayerController>();
 }
Exemplo n.º 2
0
 public void changeState(Boss_FSM_Base newState)
 {
     currentState.leave(this);
     currentState = newState;
     currentState.enter(this);
 }