fix: fading
This commit is contained in:
@@ -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);
|
||||
|
||||
// 停止当前场景
|
||||
|
||||
Reference in New Issue
Block a user