mirror of
https://github.com/Ratstail91/Mementos.git
synced 2025-11-29 02:24:28 +11:00
Committed everything
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
|
||||
public class QuitGameOnKeypress : MonoBehaviour {
|
||||
|
||||
public KeyCode key = KeyCode.Escape;
|
||||
|
||||
void Update () {
|
||||
if(Input.GetKeyDown(key)) Application.Quit();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user