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")) + { + // + } } } }