From 84b6cb604310399529a695a421a85af700bbb796 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 3 Aug 2025 14:44:16 -0400 Subject: Added unfinished stuff --- Assets/Scripts/Quit.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Assets/Scripts/Quit.cs (limited to 'Assets/Scripts/Quit.cs') diff --git a/Assets/Scripts/Quit.cs b/Assets/Scripts/Quit.cs new file mode 100644 index 0000000..3faba95 --- /dev/null +++ b/Assets/Scripts/Quit.cs @@ -0,0 +1,21 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class Quit : MonoBehaviour +{ + // Update is called once per frame + void Update() + { + if (Input.GetKey("escape")) + { +#if UNITY_STANDALONE + Application.Quit(); +#endif + /* +#if UNITY_EDITOR + UnityEditor.EditorApplication.isPlaying = false; +#endif*/ + } + } +} -- cgit v1.2.3