fixes on fruitInventory: removal/population sometimes overlapping & prev tween cancelling
@@ -102,10 +102,8 @@ class FrogScene extends Scene
102
102
}
103
103
if (this.windowDestroyTweens.length > 0)
104
104
{
105
let gameButton = MainMenu.Instance.getChildButton("btnGames").getChildButton("btnFrog");
106
let tween = gameButton.moveToActiveState(800, () => gameButton.moveToInactiveState(800));
107
108
tween.easing(TWEEN.Easing.Back.Out);
105
let frogButton = MainMenu.Instance.getChildButton("btnGames").getChildButton("btnFrog");
106
frogButton.moveToActiveState(800, () => frogButton.moveToInactiveState(800));
109
107
110
108
this.windowDestroyTweens.forEach(t => t.start());
111
109
this.windowDestroyTweens[0].onComplete(() => this.destroy());
@@ -102,10 +102,8 @@ class FrogScene extends Scene102
}102
}103
if (this.windowDestroyTweens.length > 0)103
if (this.windowDestroyTweens.length > 0)104
{104
{105
let gameButton = MainMenu.Instance.getChildButton("btnGames").getChildButton("btnFrog");105
let frogButton = MainMenu.Instance.getChildButton("btnGames").getChildButton("btnFrog");106
let tween = gameButton.moveToActiveState(800, () => gameButton.moveToInactiveState(800));106
frogButton.moveToActiveState(800, () => frogButton.moveToInactiveState(800));107
108
tween.easing(TWEEN.Easing.Back.Out);109
107
110
this.windowDestroyTweens.forEach(t => t.start());108
this.windowDestroyTweens.forEach(t => t.start());111
this.windowDestroyTweens[0].onComplete(() => this.destroy());109
this.windowDestroyTweens[0].onComplete(() => this.destroy());