From: David NĂ©grier Date: Sun, 3 May 2020 13:18:15 +0000 (+0200) Subject: Adding login method back for future use in LogincScene X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5601e5e134caf6ea9a3c3db994c8ab8004973826;p=libreadventure.git Adding login method back for future use in LogincScene --- diff --git a/front/src/Phaser/Login/LogincScene.ts b/front/src/Phaser/Login/LogincScene.ts index 8a4c1e9..e160ca8 100644 --- a/front/src/Phaser/Login/LogincScene.ts +++ b/front/src/Phaser/Login/LogincScene.ts @@ -58,9 +58,7 @@ export class LogincScene extends Phaser.Scene { if (name === '') { return } - gameManager.connect(name).then(() => { - this.scene.start(GameSceneName, { name }); - }); + return this.login(name); }); } @@ -73,11 +71,9 @@ export class LogincScene extends Phaser.Scene { } } - /*async login() { - let name = this.nameInput.text; - if (!name) return; + private async login(name: string) { gameManager.connect(name).then(() => { this.scene.start(GameSceneName); }); - }*/ + } }