private void RestartMessage(string messageTop) { upperTitle.text = messageTop; nextDayText.text = "Restart"; NextDayButton.onClick.RemoveAllListeners(); NextDayButton.onClick.AddListener(() => transition.LoadScene(1)); }
public void HomeButton() { transition.LoadScene(0); }
public void PlayButton() { PlayerPrefs.SetInt("Played", 0); transition.LoadScene(1); }