From 18e60311a673347e24ca3c2fe09bfec3fc233c7f Mon Sep 17 00:00:00 2001 From: "aube.lee" Date: Tue, 4 Feb 2025 22:59:42 +0900 Subject: [PATCH] =?UTF-8?q?option=20button=20=EC=95=A1=EC=85=98=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Gameton/Scripts/UI/IngameOptionUI.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Gameton-06/Assets/Gameton/Scripts/UI/IngameOptionUI.cs b/Gameton-06/Assets/Gameton/Scripts/UI/IngameOptionUI.cs index 06f34366..e24ab26b 100644 --- a/Gameton-06/Assets/Gameton/Scripts/UI/IngameOptionUI.cs +++ b/Gameton-06/Assets/Gameton/Scripts/UI/IngameOptionUI.cs @@ -1,6 +1,7 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; +using UnityEngine.SceneManagement; namespace TON { @@ -12,10 +13,18 @@ namespace TON UIManager.Show(UIList.IngameOptionUI); } - // Update is called once per frame - void Update() + public void OnClickOptionButton() { - + Scene activeScene = UnityEditor.SceneManagement.EditorSceneManager.GetActiveScene(); + + if (activeScene.name.Equals("Lobby")) + { + // + } + else if (activeScene.name.StartsWith("Stage")) + { + // + } } } }