rewrote the authorisation flow: give more responsability to gameManager and less to gameScene
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user