Fix loader logo WA (#991)

This commit is contained in:
grégoire parant
2021-05-04 14:28:30 +02:00
committed by GitHub
parent 622e0c6130
commit fa3ffe4d7a
6 changed files with 39 additions and 23 deletions
@@ -1,6 +1,6 @@
import Image = Phaser.GameObjects.Image;
import Rectangle = Phaser.GameObjects.Rectangle;
import { addLoader } from "../Components/Loader";
import { addLoader, endLoader } from "../Components/Loader";
import { gameManager} from "../Game/GameManager";
import { ResizableScene } from "./ResizableScene";
import { EnableCameraSceneName } from "./EnableCameraScene";
@@ -38,8 +38,6 @@ export class SelectCompanionScene extends ResizableScene {
getAllCompanionResources(this.load).forEach(model => {
this.companionModels.push(model);
});
addLoader(this);
}
create() {
@@ -85,6 +83,8 @@ export class SelectCompanionScene extends ResizableScene {
this.createCurrentCompanion();
this.updateSelectedCompanion();
endLoader(this);
}
update(time: number, delta: number): void {