aboutsummaryrefslogtreecommitdiff
blob: d439c51eae842c0c1ddc85b422bbcd32bba7b795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.SceneManagement;

public class TitleScreen : MonoBehaviour
{
    void Update()
    {
        // quit application when back button is clicked
        if (Input.GetKeyDown(KeyCode.Escape))
            Application.Quit();
    }

    public void ToLevel1()
    {
        SceneManager.LoadScene("Level1");
    }

    public void Quit()
    {
        Application.Quit();
    }
}