Esempio n. 1
0
 /// <summary>
 /// When the player hits the start button, the game will react according
 /// to the toSelect button
 /// </summary>
 void ActivateButton()
 {
     if (toSelect == StartGameButton)
     {
         Debug.Log("Starting Game...");
         //StartGameButton.Select();
         MenuButtonsScript._Level1Scene();
     }
     else if (toSelect == OptionsGameButton)
     {
         //OptionsGameButton.Select();
         MenuButtonsScript._OptionsMenu();
     }
     else if (toSelect == QuitGameButton)
     {
         //QuitGameButton.Select();
         MenuButtonsScript._QuitGame();
     }
     else if (toSelect == BackGameButton)
     {
         //BackGameButton.Select();
         MenuButtonsScript._MainMenu();
     }
 }
 /// <summary>
 /// When the player hits the start button, the game will react according
 /// to the toSelect button
 /// </summary>
 void ActivateButton()
 {
     if (toSelect == StartGameButton)
     {
         Debug.Log("Starting Game...");
         //StartGameButton.Select();
         MenuButtonsScript._LobbyMenu();
     }
     else if (toSelect == OptionsGameButton)
     {
         //OptionsGameButton.Select();
         MenuButtonsScript._OptionsMenu();
     }
     else if (toSelect == QuitGameButton)
     {
         //QuitGameButton.Select();
         MenuButtonsScript._QuitGame();
     }
     else if (toSelect == CreditsGameButton)
     {
         //BackGameButton.Select();
         MenuButtonsScript._CreditsMenu();
     }
 }