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
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user