13 lines
163 B
C#
13 lines
163 B
C#
using UnityEngine;
|
|
|
|
public class QuitOnEsc : MonoBehaviour
|
|
{
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Escape))
|
|
{
|
|
Application.Quit();
|
|
}
|
|
}
|
|
}
|