Fixed room switching
This commit is contained in:
parent
4ca2876b31
commit
cb159350e9
3 changed files with 45 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue