summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Quit.cs
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-04-20 19:08:59 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-04-20 19:08:59 -0400
commitdd117b77aae1d8be7563b360d05b842a73b7dab2 (patch)
treed8ca5ab0b6b6ca32df35558917ce69df3cd4f980 /Assets/Scripts/Quit.cs
parent0382584a77aed5dc926909b7dad6159ae0757e38 (diff)
downloadProject-Sandbox-dd117b77aae1d8be7563b360d05b842a73b7dab2.tar.gz
Project-Sandbox-dd117b77aae1d8be7563b360d05b842a73b7dab2.tar.bz2
Project-Sandbox-dd117b77aae1d8be7563b360d05b842a73b7dab2.zip
Upgraded Unity
Diffstat (limited to 'Assets/Scripts/Quit.cs')
-rw-r--r--Assets/Scripts/Quit.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/Assets/Scripts/Quit.cs b/Assets/Scripts/Quit.cs
new file mode 100644
index 0000000..ea092b0
--- /dev/null
+++ b/Assets/Scripts/Quit.cs
@@ -0,0 +1,14 @@
+using UnityEngine;
+
+public class Exit : MonoBehaviour
+{
+ // Update is called once per frame
+ void Update()
+ {
+ if (Input.GetKey("escape"))
+ {
+ Application.Quit();
+ }
+
+ }
+}