Files
Mementos/Unity/Alternate Genre Jam/Assets/Ink/Demos/Basic Demo/Scripts/QuitGameOnKeypress.cs
2021-06-30 21:39:19 +10:00

11 lines
211 B
C#

using UnityEngine;
using System.Collections;
public class QuitGameOnKeypress : MonoBehaviour {
public KeyCode key = KeyCode.Escape;
void Update () {
if(Input.GetKeyDown(key)) Application.Quit();
}
}