summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Exit.cs
blob: ea092b064bdb7efbf7239f40df1b776a3e2a9ced (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
using UnityEngine;

public class Exit : MonoBehaviour
{
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKey("escape"))
        {
            Application.Quit();
        }       
        
    }
}