10스테이지 완료 후 EndUI 활성화 기능 추가
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user