PauseMenu.cs 539 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class PauseMenu : MonoBehaviour {

    private DaytimeManager dayManager;

10
    void Awake() {
11
12
13
14
15
16
17
18
19
20
        dayManager = GameObject.FindWithTag("Manager").GetComponent<DaytimeManager>();
    }

    public void Continue() {
        dayManager.setPauseMenu(false);
    }
    public void ExitGame() {

    }
    public void ExitToMainMenu() {
21
        Time.timeScale = 1;
22
23
24
        SceneManager.LoadScene("MainMenu");
    }
}