Ejemplo n.º 1
0
    public void ResumeButton()
    {
        PlayPanel.SetActive(true);
        PusePanel.SetActive(false);
        ResumeBttn.SetActive(true);

        Time.timeScale = 1;
    }
Ejemplo n.º 2
0
 public void IfPetIsDead()
 {
     PuseText.text = "Game Over"
                     + "\n\nYou've met with a terrible fate, havent you?"
                     + "\n\nWould you like to try again?";
     GameObject.Find("Canvas").GetComponent <PlayerStats>().SavePlayerStats();
     PuseButton();
     ResumeBttn.SetActive(false);
 }