UnityEngine.Application.Quit C# (CSharp) Method

Quit() public static method

public static Quit ( ) : void
return void
		public static void Quit()
		{
			UnEngine.InternalEngine.EngineState.Instance.Quit();
		}
    }

Usage Example

コード例 #1
0
        protected override void OnClosing(CancelEventArgs e)
        {
            base.OnClosing(e);

            if (_onForceClosing)
            {
                return;
            }

            var result = MessageBox.Show(
                "Shutdown server?",
                "Shutdown",
                MessageBoxButtons.YesNo,
                MessageBoxIcon.Exclamation
                );

            if (result == DialogResult.Yes)
            {
                UnityApplication.Quit();
            }
            else
            {
                e.Cancel = true;
            }
        }
All Usage Examples Of UnityEngine.Application::Quit