Esempio n. 1
0
 public void RestartGame()
 {
     playerAlive           = true;
     hueRotate.RotateValue = 0;
     scoreManager.Reset();
     playerController.Reset();
     followTheBeat.Reset();
     for (int i = 0; i < bullets.Count; i++)
     {
         GameObject.Destroy(bullets[i].gameObject);
     }
     bullets.Clear();
     bgmAudio.volume = 1;
     bgmAudio.Play();
     Time.timeScale = 1;
 }