rewrote the authorisation flow: give more responsability to gameManager and less to gameScene

This commit is contained in:
arp
2020-10-12 16:23:07 +02:00
parent 032facb75f
commit 02c193a262
14 changed files with 244 additions and 170 deletions
+1 -2
View File
@@ -266,8 +266,7 @@ export class EnableCameraScene extends Phaser.Scene {
mediaManager.stopCamera();
mediaManager.stopMicrophone();
const {key, startLayerName} = await gameManager.loadStartingMap(this.scene);
this.scene.start(key, {startLayerName});
gameManager.goToStartingMap();
}
private async getDevices() {