Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class QuitWhenEscapeKeyDown : MonoBehaviour {
void Update() {
if (Input.GetKeyDown(KeyCode.Escape)) {
Application.Quit();
}
}
}
4e10c4f05This file is pinned to the selected release. Download the original to open it in your design tool.