예제 #1
0
 // Displays the Tutorial Window in the Main Menu
 public void Tutorial()
 {
     if (TutorialMenu.activeInHierarchy == false)
     {
         //closes other windows if open
         CreditMenu.SetActive(false);
         HighscoreMenu.SetActive(false);
         //open tutorial
         TutorialMenu.SetActive(true);
     }
     else
     {
         TutorialMenu.SetActive(false);
     }
 }
예제 #2
0
 // Displays the Credits Window in the Main Menu
 public void Credit()
 {
     if (CreditMenu.activeInHierarchy == false)
     {
         //closes other windows if open
         TutorialMenu.SetActive(false);
         HighscoreMenu.SetActive(false);
         //open credits
         CreditMenu.SetActive(true);
     }
     else
     {
         CreditMenu.SetActive(false);
     }
 }
예제 #3
0
 // Displays the High Score Window in the Main Menu
 public void HighScore()
 {
     if (HighscoreMenu.activeInHierarchy == false)
     {
         //closes other windows if open
         CreditMenu.SetActive(false);
         TutorialMenu.SetActive(false);
         //open high scores
         HighscoreMenu.SetActive(true);
     }
     else
     {
         HighscoreMenu.SetActive(false);
     }
 }