fixed mess & made more mess
@@ -102,7 +102,7 @@ class FrogScene extends Scene
102
102
}
103
103
if (this.windowDestroyTweens.length > 0)
104
104
{
105
let frogButton = MainMenu.Instance.children.btnGames.children.btnFrog;
105
let frogButton = MainMenu.Instance.menu.children.btnGames.menu.children.btnFrog;
106
106
frogButton.moveToActiveState(800, () => frogButton.moveToInactiveState(800));
107
107
108
108
this.windowDestroyTweens.forEach(t => t.start());
@@ -129,7 +129,7 @@ class FrogScene extends Scene
129
129
passEatenFruitsToSimpleImagesRenderer ()
130
130
{
131
131
132
let targetButton = MainMenu.Instance.children.btnFruit;
132
let targetButton = MainMenu.Instance.menu.children.btnFruit;
133
133
let targetVector = targetButton.targetPosition;
134
134
135
135
this.eatenFruit.forEach(e =>
@@ -102,7 +102,7 @@ class FrogScene extends Scene102
}102
}103
if (this.windowDestroyTweens.length > 0)103
if (this.windowDestroyTweens.length > 0)104
{104
{105
let frogButton = MainMenu.Instance.children.btnGames.children.btnFrog;105
let frogButton = MainMenu.Instance.menu.children.btnGames.menu.children.btnFrog;106
frogButton.moveToActiveState(800, () => frogButton.moveToInactiveState(800));106
frogButton.moveToActiveState(800, () => frogButton.moveToInactiveState(800));107
107
108
this.windowDestroyTweens.forEach(t => t.start());108
this.windowDestroyTweens.forEach(t => t.start());@@ -129,7 +129,7 @@ class FrogScene extends Scene129
passEatenFruitsToSimpleImagesRenderer ()129
passEatenFruitsToSimpleImagesRenderer ()130
{130
{131
131
132
let targetButton = MainMenu.Instance.children.btnFruit;132
let targetButton = MainMenu.Instance.menu.children.btnFruit;133
let targetVector = targetButton.targetPosition;133
let targetVector = targetButton.targetPosition;134
134
135
this.eatenFruit.forEach(e => 135
this.eatenFruit.forEach(e =>