fix():修复重启时花屏效果未关闭的BUG
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Core;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Script.Gameplay.Global
|
||||
{
|
||||
public class GameManager : MonoSingleton<GameManager>
|
||||
@@ -26,8 +29,10 @@ namespace Script.Gameplay.Global
|
||||
OnGameStart?.Invoke();
|
||||
}
|
||||
|
||||
public void ReStartGame()
|
||||
public IEnumerator ReStartGame()
|
||||
{
|
||||
StartCoroutine(ScreenGlitchManager.Instance.TriggerGlitchEffect());
|
||||
yield return new WaitForSeconds(1.0f);
|
||||
ScenesManager.Instance.LoadGameplay(currentStartGameMode);
|
||||
OnGameStart?.Invoke();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user