2025-04-22 17:16:40 +08:00

14 lines
301 B
C#

using UnityEngine;
using System.Collections;
namespace RootMotion.Demos {
// Safely getting out of full screen desktop builds
public class ApplicationQuit : MonoBehaviour {
void Update () {
if (Input.GetKeyDown(KeyCode.Q) || Input.GetKeyDown(KeyCode.Escape)) Application.Quit();
}
}
}