child accessor by name (ex. children.btnGames)
@@ -102,7 +102,7 @@ class FrogScene extends Scene
102
102
}
103
103
if (this.windowDestroyTweens.length > 0)
104
104
{
105
let frogButton = MainMenu.Instance.getChildButton("btnGames").getChildButton("btnFrog");
105
let frogButton = MainMenu.Instance.children.btnGames.children.btnFrog;
106
106
frogButton.moveToActiveState(800, () => frogButton.moveToInactiveState(800));
107
107
108
108
this.windowDestroyTweens.forEach(t => t.start());
@@ -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.getChildButton("btnGames").getChildButton("btnFrog");105
let frogButton = MainMenu.Instance.children.btnGames.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());