示例#1
0
 void EndtheGame(GameObject won)
 {
     won.SetActive(true);
     EndGameScreen.SetActive(true);
     Destroy(pauseMenuUI);
     Destroy(ball);
 }
示例#2
0
 private void OnCollisionEnter2D(Collision2D other)
 {
     if (other.gameObject.tag == "Enemy")
     {
         StaticVars.StartGame     = false;
         StaticVars.MinigameSpeed = 600;
         EndGameScreen.SetActive(true);
         GetComponent <AudioSource>().Play();
     }
 }
示例#3
0
 public void OnClickReturnToMenu()
 {
     SceneManager.LoadScene(0);
     EndGameScreen.SetActive(false);
 }
示例#4
0
 void ShowEndScreen(string text)
 {
     EndGameScreen.SetActive(true);
     EndGameScreen.transform.Find("Content/Upper/Result/Text").GetComponent <Text>().text = text;
     EndGameScreen.transform.Find("Content/Upper/Score/Text").GetComponent <Text>().text  = "Puntos: " + Player.Instance.Score;
 }