Added esc exit feature.

master
LH 5 years ago
parent 4e2cd67467
commit 2f76cc0f89
  1. 21
      Runtime/EscExit.cs
  2. 11
      Runtime/EscExit.cs.meta

@ -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();
}
}
}

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1214614ae4f485e449ce7dbb7fca84a3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save