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();
}
}
}
7368f3069This file is pinned to the selected release. Download the original to open it in your design tool.