miepzerino
2023-12-17 fb7b0a7977c7b861e0e4d97a65fb4a9c1717a0be
Assets/Scripts/UIManager.cs
@@ -55,22 +55,6 @@
    public void OnExitGame(InputAction.CallbackContext context)
    {
        if (context.started)
        {
#if (UNITY_EDITOR || DEVELOPMENT_BUILD)
            Debug.Log(this.name + ": " + this.GetType() + ": " + System.Reflection.MethodBase.GetCurrentMethod().Name);
#endif
#if (UNITY_EDITOR)
            UnityEditor.EditorApplication.isPlaying = false;
#elif (UNITY_STANDALONE)
            Application.Quit();
#elif (UNITY_WEBGL)
            // NOT WORKING
            // Need to add new scene "QuitScene"
            // change camera to solid color "black"
            // add scene to build settings
            // SceneManager.LoadScene("QuitScene");
#endif
        }
        SceneManager.LoadScene("MainMenu");
    }
}