修复跳转bug

This commit is contained in:
2026-07-04 16:15:57 +08:00
parent fc585fa67e
commit cf02cfd587
3 changed files with 21 additions and 12 deletions
+6 -9
View File
@@ -145,15 +145,12 @@ namespace GameFramework
}
overlay.color = new Color(0, 0, 0, 1);
// 加载 Scoring 场景
if (SceneLoader.Instance != null)
{
SceneLoader.Instance.LoadScoringScene();
}
else
{
SceneManager.LoadScene("Scoring");
}
// 等待一帧确保淡出渲染完成
yield return null;
// 加载 Scoring 场景(直接使用 SceneManager,避免 SceneLoader 的异步加载可能卡住)
Debug.Log("[GameManager] 过场完成,正在加载 Scoring 场景...");
SceneManager.LoadScene("Scoring");
}
}