FIX: going back a 2nd time to SelectCharacterScene used to crash the game
This commit is contained in:
parent
f5e77ad749
commit
eb88db92be
6 changed files with 32 additions and 19 deletions
|
@ -84,8 +84,9 @@ export class LoginScene extends ResizableScene {
|
|||
private login(name: string): void {
|
||||
gameManager.setPlayerName(name);
|
||||
|
||||
this.scene.sleep(LoginSceneName)
|
||||
this.scene.stop(LoginSceneName)
|
||||
gameManager.tryResumingGame(this, SelectCharacterSceneName);
|
||||
this.scene.remove(LoginSceneName)
|
||||
}
|
||||
|
||||
public onResize(ev: UIEvent): void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue