summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Quit.cs
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-08-23 18:00:57 -0400
committerAndrew Lee <alee14498@protonmail.com>2020-08-23 18:00:57 -0400
commit4c192cebf7af6c271b8a8a9b10616c85ab2856dd (patch)
tree58c30cf2b9c17172e7de535b6bd41f3e4899b176 /Assets/Scripts/Quit.cs
parent9a3434cce0e148b8cd86eb471cf92b5dbe425575 (diff)
downloadProject-Sandbox-4c192cebf7af6c271b8a8a9b10616c85ab2856dd.tar.gz
Project-Sandbox-4c192cebf7af6c271b8a8a9b10616c85ab2856dd.tar.bz2
Project-Sandbox-4c192cebf7af6c271b8a8a9b10616c85ab2856dd.zip
Upgraded project; Main menu
Diffstat (limited to 'Assets/Scripts/Quit.cs')
-rw-r--r--Assets/Scripts/Quit.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Assets/Scripts/Quit.cs b/Assets/Scripts/Quit.cs
index d53343e..40cfc85 100644
--- a/Assets/Scripts/Quit.cs
+++ b/Assets/Scripts/Quit.cs
@@ -2,6 +2,10 @@
public class Quit : MonoBehaviour
{
+ public void ExitGame() {
+ Debug.Log("Game has closed.");
+ Application.Quit();
+ }
// Update is called once per frame
void Update()
{