메인 화면 버튼 클릭 시 1초 딜레이 추가
This commit is contained in:
@@ -7,9 +7,24 @@ namespace TON
|
||||
public class TitleUI : UIBase
|
||||
{
|
||||
public CharaterSelectUI charaterSelectUI;
|
||||
|
||||
|
||||
AudioSource _buttonAudio;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
_buttonAudio = gameObject.AddComponent<AudioSource>();
|
||||
DontDestroyOnLoad(this.transform.parent.gameObject);
|
||||
}
|
||||
|
||||
public void OnClickStartButton()
|
||||
{
|
||||
StartCoroutine(StartButtonDelay());
|
||||
}
|
||||
|
||||
IEnumerator StartButtonDelay()
|
||||
{
|
||||
yield return new WaitForSeconds(1f); // 1초 대기
|
||||
|
||||
// Main.Singleton?.ChangeScene(SceneType.Ingame);
|
||||
UIManager.Hide<TitleUI>(UIList.TitleUI);
|
||||
|
||||
@@ -34,7 +49,6 @@ namespace TON
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void OnClickExitButton()
|
||||
{
|
||||
Main.Singleton?.SystemQuit();
|
||||
|
||||
Reference in New Issue
Block a user