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 === '') {
|
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);
|
||||||
});
|
});
|
||||||
}*/
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user