You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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