private void RestartMessage(string messageTop)
    {
        upperTitle.text  = messageTop;
        nextDayText.text = "Restart";

        NextDayButton.onClick.RemoveAllListeners();
        NextDayButton.onClick.AddListener(() => transition.LoadScene(1));
    }
예제 #2
0
 public void HomeButton()
 {
     transition.LoadScene(0);
 }
예제 #3
0
 public void PlayButton()
 {
     PlayerPrefs.SetInt("Played", 0);
     transition.LoadScene(1);
 }