fix():修复重启时花屏效果未关闭的BUG

This commit is contained in:
2025-10-27 22:13:55 +08:00
parent 4951f25187
commit 5e30e6412a
13 changed files with 6261 additions and 5368 deletions

View File

@@ -27,7 +27,7 @@ namespace Script.Gameplay.Global
_gameCountdownManager.OnFinish.AddListener(() =>
{
if (IsOpenRestartGameOnCountdownFinish)
StartCoroutine(OnCountDown());
StartCoroutine(GameManager.Instance.ReStartGame());
}
);
}
@@ -36,12 +36,5 @@ namespace Script.Gameplay.Global
{
_gameCountdownManager.StartLevelTimer();
}
public IEnumerator OnCountDown()
{
StartCoroutine(ScreenGlitchManager.Instance.TriggerGlitchEffect());
yield return new WaitForSeconds(1.0f);
GameManager.Instance.ReStartGame();
}
}
}