diff --git a/Runtime/EscExit.cs b/Runtime/EscExit.cs new file mode 100644 index 0000000..9f57d1c --- /dev/null +++ b/Runtime/EscExit.cs @@ -0,0 +1,21 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +public class EscExit : MonoBehaviour +{ + // Start is called before the first frame update + void Start() + { + + } + + // Update is called once per frame + void Update() + { + if (Input.GetKeyDown(KeyCode.Escape)) + { + Application.Quit(); + } + } +} diff --git a/Runtime/EscExit.cs.meta b/Runtime/EscExit.cs.meta new file mode 100644 index 0000000..3728684 --- /dev/null +++ b/Runtime/EscExit.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1214614ae4f485e449ce7dbb7fca84a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: