Merge pull request #878 from thecodingmachine/localStorageGhost
FIX: improved the validation from localstorage for username and characterLayers
This commit is contained in:
commit
29d43d7776
8 changed files with 84 additions and 9 deletions
|
@ -35,7 +35,7 @@ export class GameManager {
|
|||
|
||||
if (!this.playerName) {
|
||||
return LoginSceneName;
|
||||
} else if (!this.characterLayers) {
|
||||
} else if (!this.characterLayers || !this.characterLayers.length) {
|
||||
return SelectCharacterSceneName;
|
||||
} else {
|
||||
return EnableCameraSceneName;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue