public class QuitManager : MonoBehaviour { void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } } }