Adding login method back for future use in LogincScene

This commit is contained in:
David Négrier 2020-05-03 15:18:15 +02:00
parent d72741ce0c
commit 5601e5e134

View File

@ -58,9 +58,7 @@ export class LogincScene extends Phaser.Scene {
if (name === '') { if (name === '') {
return return
} }
gameManager.connect(name).then(() => { return this.login(name);
this.scene.start(GameSceneName, { name });
});
}); });
} }
@ -73,11 +71,9 @@ export class LogincScene extends Phaser.Scene {
} }
} }
/*async login() { private async login(name: string) {
let name = this.nameInput.text;
if (!name) return;
gameManager.connect(name).then(() => { gameManager.connect(name).then(() => {
this.scene.start(GameSceneName); this.scene.start(GameSceneName);
}); });
}*/ }
} }