Fixed room switching

This commit is contained in:
David Négrier 2020-10-13 18:44:50 +02:00
parent 4ca2876b31
commit cb159350e9
3 changed files with 45 additions and 14 deletions

View file

@ -48,7 +48,7 @@ export class GameManager {
const gameIndex = scenePlugin.getIndex(mapUrl);
if(gameIndex === -1){
const game : Phaser.Scene = GameScene.createFromUrl(mapUrl, roomID);
const game : Phaser.Scene = GameScene.createFromUrl(room, mapUrl);
console.log('Adding scene '+mapUrl);
scenePlugin.add(mapUrl, game, false);
}