public void ResumeButton() { PlayPanel.SetActive(true); PusePanel.SetActive(false); ResumeBttn.SetActive(true); Time.timeScale = 1; }
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); }