Adding login method back for future use in LogincScene
This commit is contained in:
parent
d72741ce0c
commit
5601e5e134
@ -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);
|
||||
});
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user