Minor change to make sure the scene starts even if in background (does this really work?)
This commit is contained in:
parent
500dc83a85
commit
f518830073
1 changed files with 1 additions and 2 deletions
|
@ -187,8 +187,7 @@ export class GameManager {
|
|||
|
||||
reconnectToGameScene(lastPositionShared: PointInterface) {
|
||||
const game : Phaser.Scene = GameScene.createFromUrl(this.oldMapUrlFile, this.oldInstance);
|
||||
this.reconnectScene.scene.add(this.oldSceneKey, game, false);
|
||||
this.reconnectScene.scene.start(this.oldSceneKey, { initPosition: lastPositionShared });
|
||||
this.reconnectScene.scene.add(this.oldSceneKey, game, true, { initPosition: lastPositionShared });
|
||||
}
|
||||
|
||||
private getCurrentGameScene(): GameScene {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue