Пример #1
0
 public void ExitState(string nextState)
 {
     if (nextState == "continue")
     {
         pauseMenu.SetActive(false);
         gameController.currentState = Game_Controller.Game_State.Playing_State;
         gameController.ChangeState();
     }
     else if (nextState == "quit")
     {
         pauseMenu.SetActive(false);
         gameController.currentState = Game_Controller.Game_State.End_State;
         gameController.ChangeState();
     }
 }
Пример #2
0
 public void ExitState()
 {
     //take to main menu
     gameController.currentState = Game_Controller.Game_State.Pause_State;
     gameController.ChangeState();
 }
Пример #3
0
 public void ExitState()
 {
     gameController.currentState = Game_Controller.Game_State.Pause_State;
     gameController.ChangeState();
 }