Minor change to make sure the scene starts even if in background (does this really work?)

This commit is contained in:
David Négrier 2020-06-10 16:00:54 +02:00
parent 500dc83a85
commit f518830073

View File

@ -187,8 +187,7 @@ export class GameManager {
reconnectToGameScene(lastPositionShared: PointInterface) { reconnectToGameScene(lastPositionShared: PointInterface) {
const game : Phaser.Scene = GameScene.createFromUrl(this.oldMapUrlFile, this.oldInstance); const game : Phaser.Scene = GameScene.createFromUrl(this.oldMapUrlFile, this.oldInstance);
this.reconnectScene.scene.add(this.oldSceneKey, game, false); this.reconnectScene.scene.add(this.oldSceneKey, game, true, { initPosition: lastPositionShared });
this.reconnectScene.scene.start(this.oldSceneKey, { initPosition: lastPositionShared });
} }
private getCurrentGameScene(): GameScene { private getCurrentGameScene(): GameScene {