show select companion scene after customize scene

This commit is contained in:
Johannes Berthel 2021-04-02 23:49:25 +02:00
parent 4aa082d83b
commit 8c35860f2a

View File

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