Exemplo n.º 1
0
 public void ChangeState(UIState state)
 {
     //We want to disable what the state is doing before changing to a new state so we get a clean template for the UI
     currentState?.BeforeStateChange();
     currentState = state;
     currentState.DisplayState();
     Debug.Log("Current state: " + currentState.ToString());
 }