don't show companion selection during first connexion flow

This commit is contained in:
Johannes Berthel 2021-04-06 18:36:46 +02:00
parent 6c512fb7cd
commit 7c6b73efdb
2 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,4 @@
import {EnableCameraSceneName} from "./EnableCameraScene";
import {SelectCompanionSceneName} from "./SelectCompanionScene";
import {TextField} from "../Components/TextField";
import Image = Phaser.GameObjects.Image;
import Rectangle = Phaser.GameObjects.Rectangle;
@ -116,7 +115,7 @@ export class CustomizeScene extends AbstractCharacterScene {
gameManager.setCharacterLayers(layers);
this.scene.sleep(CustomizeSceneName);
gameManager.tryResumingGame(this, localUserStore.wasCompanionSet() ? EnableCameraSceneName : SelectCompanionSceneName);
gameManager.tryResumingGame(this, EnableCameraSceneName);
});
this.input.keyboard.on('keyup-RIGHT', () => this.moveCursorHorizontally(1));

View File

@ -2,7 +2,6 @@ import {gameManager} from "../Game/GameManager";
import {TextField} from "../Components/TextField";
import Image = Phaser.GameObjects.Image;
import Rectangle = Phaser.GameObjects.Rectangle;
import {SelectCompanionSceneName} from "./SelectCompanionScene";
import {EnableCameraSceneName} from "./EnableCameraScene";
import {CustomizeSceneName} from "./CustomizeScene";
import {ResizableScene} from "./ResizableScene";
@ -146,7 +145,7 @@ export class SelectCharacterScene extends AbstractCharacterScene {
this.scene.stop(SelectCharacterSceneName);
if (this.selectedPlayer !== null) {
gameManager.setCharacterLayers([this.selectedPlayer.texture.key]);
gameManager.tryResumingGame(this, localUserStore.wasCompanionSet() ? EnableCameraSceneName : SelectCompanionSceneName);
gameManager.tryResumingGame(this, EnableCameraSceneName);
} else {
this.scene.run(CustomizeSceneName);
}