Example #1
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);
     }
 }
Example #2
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);
     }
 }
Example #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);
     }
 }
Example #4
0
 public void OnBackToMainMenuPressed()
 {
     MainMenu.SetActive(true);
     CreditMenu.SetActive(false);
 }
Example #5
0
 public void OnCreditsPressed()
 {
     MainMenu.SetActive(false);
     CreditMenu.SetActive(true);
 }