Esempio n. 1
0
 public void GameOver()
 {
     music.volume   = 0.4f;
     music.pitch    = 0.65f;
     scoreText.text = "Your Score: " + score.ToString();
     instructionsPanel.GetComponent <Animator>().SetTrigger("InstructionsOut");
     scoreUI.GetComponent <Animator>().SetTrigger("ScoreOut");
     gameOver = true;
     obstacles.CancelObstacles();
     gameOverPanel.SetActive(true);
     SoundManager.instance.PlayGameOverSound(0.8f);
 }