10스테이지 완료 후 EndUI 활성화 기능 추가

This commit is contained in:
Mingu Kim
2025-02-28 16:32:06 +09:00
parent f561035b95
commit 5fac0b6680

View File

@@ -232,6 +232,8 @@ namespace TON
}
private IEnumerator StartNextWaveWithDelay()
{
if (currentWave != 11 && GameObject.Find("TON.Player").GetComponentInChildren<CharacterBase>() != null)
{
float timer = nextWaveDelay;
@@ -248,5 +250,15 @@ namespace TON
isWaitingForNextWave = false;
StartNextWave();
}
else
{
Invoke(nameof(ShowGameEndUI), 0.5f);
}
}
private void ShowGameEndUI()
{
UIManager.Show<GameWinUI>(UIList.GameWinUI);
}
}
}