using UnityEngine; namespace UnityConsole.Commands { /// /// QUIT command. Quit the application. /// public static class QuitCommand { public static readonly string name = "QUIT"; public static readonly string description = "Quit the application."; public static readonly string usage = "QUIT"; public static ConsoleCommandResult Execute(params string[] args) { Application.Quit(); #if UNITY_EDITOR UnityEditor.EditorApplication.isPlaying = false; #endif return ConsoleCommandResult.Succeeded(); } } }