Example #1
0
 //Initialize after each another rebirth
 public void NextPlay()
 {
     IsGameOver = false;
     GameOverScreen.SetActive(false);
     cam.backgroundColor = Random.ColorHSV();
     StartButton.gameObject.SetActive(true);
     ShopButton.gameObject.SetActive(true);
     Logo.gameObject.SetActive(true);
     Hits = 0;
     enemies.StartCoroutine(enemies.Generate());
     if (!StartButton.IsActive() || !ShopButton.IsActive())
     {
         this.gameObject.SetActive(true);
     }
 }