diff --git a/Gameton-06/Assets/Gameton/Scripts/UI/SkillSettingUI.cs b/Gameton-06/Assets/Gameton/Scripts/UI/SkillSettingUI.cs index 993a1955..f6277389 100644 --- a/Gameton-06/Assets/Gameton/Scripts/UI/SkillSettingUI.cs +++ b/Gameton-06/Assets/Gameton/Scripts/UI/SkillSettingUI.cs @@ -193,6 +193,13 @@ namespace TON public void OnClickCloseButton() { + StartCoroutine(CloseButtonDelay()); + } + + IEnumerator CloseButtonDelay() + { + yield return new WaitForSeconds(0.2f); // 0.2초 대기 + UIManager.Hide(UIList.SkillSettingUI); } } diff --git a/Gameton-06/Assets/Gameton/Scripts/UI/TitleUI.cs b/Gameton-06/Assets/Gameton/Scripts/UI/TitleUI.cs index c5ebce59..922285d0 100644 --- a/Gameton-06/Assets/Gameton/Scripts/UI/TitleUI.cs +++ b/Gameton-06/Assets/Gameton/Scripts/UI/TitleUI.cs @@ -7,14 +7,6 @@ namespace TON public class TitleUI : UIBase { public CharaterSelectUI charaterSelectUI; - - AudioSource _buttonAudio; - - private void Start() - { - _buttonAudio = gameObject.AddComponent(); - DontDestroyOnLoad(this.transform.parent.gameObject); - } public void OnClickStartButton() { @@ -23,7 +15,7 @@ namespace TON IEnumerator StartButtonDelay() { - yield return new WaitForSeconds(1f); // 1초 대기 + yield return new WaitForSeconds(0.2f); // 0.2초 대기 // Main.Singleton?.ChangeScene(SceneType.Ingame); UIManager.Hide(UIList.TitleUI);