public void Quit() { OnApplicationQuit?.Invoke(); #if !UNITY_ANDROID || UNITY_EDITOR Application.Quit(); #else System.Diagnostics.Process.GetCurrentProcess().Kill(); #endif }
public static void BroadcastApplicationQuit() { OnApplicationQuit?.Invoke(); OnApplicationQuit = null; }