fix: fading

This commit is contained in:
hyper
2026-04-12 18:18:45 +08:00
parent 6584578316
commit cc80cbad06
2 changed files with 3 additions and 0 deletions
@@ -81,6 +81,7 @@ export function PhaserGame(props: PhaserGameProps) {
const fade = phaserGame.scene.getScene(FADE_SCENE_KEY) as FadeSceneClass;
// 淡出到黑色
phaserGame.scene.bringToTop(FADE_SCENE_KEY);
await fade.fadeOut(300);
// 停止当前场景