From afac0427062c2d2348389c87723b3027d6b4418c Mon Sep 17 00:00:00 2001 From: "DESKTOP-FMM8UI0\\CLV" Date: Tue, 9 Mar 2021 13:53:46 +0100 Subject: [PATCH] supp debug log --- front/src/Phaser/Game/GameScene.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index fbd8c820..89a039c8 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -661,18 +661,20 @@ export class GameScene extends ResizableScene implements CenterListener { scale : 1, ease : "EaseOut", duration : 400, - - }); - this.popUpElement.setClassName("popUpElement"); + this.popUpElement.setClassName("popUpElement"); + } else { this.tweens.add({ targets : this.popUpElement , scale : 0, ease : "EaseOut", duration : 400, - + onComplete : () => { + this.popUpElement?.destroy(); + this.popUpElement = undefined; + }, }); } });