2026-05-29 씬전환

This commit is contained in:
2026-05-29 13:20:25 +09:00
parent d95aae4aef
commit 964383c59c
3 changed files with 12 additions and 10 deletions

Binary file not shown.

Binary file not shown.

View File

@@ -77,6 +77,9 @@ private void Start()
{
_ = Util.RunDelayed(1f,StartWaves,destroyCancellationToken);
}
if(BossZoneButton != null)
BossZoneButton.onClick.AddListener(() => SceneLoadManager.Instance.RequestSceneChange("BossScene"));
}
private void OnDestroy()
@@ -85,7 +88,7 @@ private void OnDestroy()
_waveCts?.Dispose();
}
private async Awaitable WaveUIOn()
private async Awaitable ShowWaveUI()
{
try
{
@@ -106,12 +109,8 @@ private async Awaitable WaveUIOn()
// 외부에서 호출해 웨이브 시작 (예: UI 버튼, 트리거).
public void StartWaves()
{
Debug.Log("aaaa");
if (_waves == null || _waves.Count == 0) return;
RunAllWaves();
_ = WaveUIOn();
}
// 진행 중인 웨이브 강제 중단. 게임 오버/메뉴 진입 등에 사용.
@@ -176,6 +175,8 @@ private async void RunAllWaves()
// 4) 타이머 감소
private async Awaitable<bool> RunWave(WaveData wave, CancellationToken token)
{
_ = ShowWaveUI();
IsRunning = true;
TimeRemaining = wave.TimeLimit;
_aliveEnemies.Clear();
@@ -358,6 +359,7 @@ public void StageClearEvent()
public void GameClear()
{
GameClearText.gameObject.SetActive(true);
if(GameClearText != null)
GameClearText.gameObject.SetActive(true);
}
}