예제 #1
0
 public void GameOver()
 {
     player.GetComponent <MoveCube>().enabled = false;
     player.GetComponentInChildren <Spawner>().spawningToggle = false;
     foreach (CubeThumper t in FindObjectsOfType <CubeThumper>())
     {
         Destroy(t.gameObject);
     }
     gamePlaying           = false;
     gameScore             = 0;
     currentPollutionLevel = 0;
     gameButton.Enable();
 }