Merge pull request #878 from thecodingmachine/localStorageGhost

FIX: improved the validation from localstorage for username and characterLayers
This commit is contained in:
Kharhamel
2021-04-12 14:56:51 +02:00
committed by GitHub
8 changed files with 84 additions and 9 deletions
+1 -1
View File
@@ -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;