Beispiel #1
0
 public void publicDeactivates()
 {
     rocket.SetActive(false);
     UI.SetActive(false);
     Bounder.SetActive(false);
     AlienCar.SetActive(false);
     AlienBullet.SetActive(false);
     AlienCar2.SetActive(false);
 }
Beispiel #2
0
 void WinGame()
 {
     if (score > 1)
     {
         PlayerPrefs.SetInt("levelReached", SceneManager.GetActiveScene().buildIndex);
         GameWin.SetActive(true);
         publicDeactivates();
         gameWin = true;
         AlienCar.SetActive(false);
         AlienBullet.SetActive(false);
         AlienCar2.SetActive(false);
     }
 }