mirror of
https://github.com/Ratstail91/Mementos.git
synced 2025-11-28 18:14:29 +11:00
11 lines
211 B
C#
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();
|
|
}
|
|
} |