diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-04-20 13:23:57 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-04-20 13:23:57 -0400 |
| commit | 0382584a77aed5dc926909b7dad6159ae0757e38 (patch) | |
| tree | 7aaef7f6c98bd5ae3ed28db39ae898d266b6d81e /Assets/Scripts/Exit.cs | |
| parent | b45cbdab7ba1217347fc67863cc9d3c90ef74bf9 (diff) | |
| download | Project-Sandbox-0382584a77aed5dc926909b7dad6159ae0757e38.tar.gz Project-Sandbox-0382584a77aed5dc926909b7dad6159ae0757e38.tar.bz2 Project-Sandbox-0382584a77aed5dc926909b7dad6159ae0757e38.zip | |
Added jumping and gun (not functional)
Diffstat (limited to 'Assets/Scripts/Exit.cs')
| -rw-r--r-- | Assets/Scripts/Exit.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Assets/Scripts/Exit.cs b/Assets/Scripts/Exit.cs new file mode 100644 index 0000000..a0feb04 --- /dev/null +++ b/Assets/Scripts/Exit.cs @@ -0,0 +1,17 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class Exit : MonoBehaviour
+{
+ // Update is called once per frame
+ void Update()
+ {
+ if (Input.GetKey("escape"))
+ {
+ Debug.Log("Game is now closed.");
+ Application.Quit();
+ }
+
+ }
+}
|
