コード例 #1
0
 public void Instructions()
 {
     gameObject.SetActive(false);
     InstructionsPanel.SetActive(true);
     MainMenuPanel.SetActive(false);
     PausePanel.SetActive(false);
     Console.WriteLine("Instructions menu controller");
 }
コード例 #2
0
 //Back to main menu
 public void BackToMenu()
 {
     //gameObject.SetActive(false);
     MainMenuPanel.SetActive(true);
     PausePanel.SetActive(false);
     OptionsPanel.SetActive(false);
     CreditsPanel.SetActive(false);
     InstructionsPanel.SetActive(false);
     GameOverPanel.SetActive(false);
     GameController.Instance.state = eState.TITLE;
     Console.WriteLine("BacktoMenu menu controller");
 }
コード例 #3
0
 public void Pause()
 {
     if (GameController.Instance.state == eState.GAME)
     {
         PausePanel.SetActive(true);
         MainMenuPanel.SetActive(false);
         OptionsPanel.SetActive(false);
         CreditsPanel.SetActive(false);
         InstructionsPanel.SetActive(false);
         GameOverPanel.SetActive(false);
         GameController.Instance.state = eState.PAUSE;
     }
 }