From fb7b0a7977c7b861e0e4d97a65fb4a9c1717a0be Mon Sep 17 00:00:00 2001
From: miepzerino <o.skotnik@gmail.com>
Date: Sun, 17 Dec 2023 20:33:11 +0000
Subject: [PATCH] Added Main Menu
---
Assets/Scripts/UIManager.cs | 18 +-----------------
1 files changed, 1 insertions(+), 17 deletions(-)
diff --git a/Assets/Scripts/UIManager.cs b/Assets/Scripts/UIManager.cs
index 834bab4..7c305c3 100644
--- a/Assets/Scripts/UIManager.cs
+++ b/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");
}
}
--
Gitblit v1.10.0