Ejemplo n.º 1
0
 public void ButtonIniciateGame()
 {
     if (tutorialScreen == false)
     {
         audioSystemScript.PlayTheSound(1);
         audioSystemScript.StopTheSound(0);
         StartCoroutine(MenuTimer(1));
     }
 }
 void CallVictoryScreen(int victoryOne)
 {
     BothCameraText.text = "";
     audioSystemScript.StopTheSound(0);
     if (victoryOne == 1)
     {
         primarySystemScript.whichPlayerIsTheVictoryOne = 1;
         SceneManager.LoadScene("VictoryScreen", LoadSceneMode.Single);
     }
     else if (victoryOne == 2)
     {
         primarySystemScript.whichPlayerIsTheVictoryOne = 2;
         SceneManager.LoadScene("VictoryScreen", LoadSceneMode.Single);
     }
     else
     {
         FatalError();
     }
 }