/// <summary> /// Hide Levels /// </summary> private void HideLevels() { Node levelNode = GetNode <Node>("Levels"); foreach (Node n in levelNode.GetChildren()) { if (n is TextureButton) { TextureButton levelTexture = (TextureButton)n; levelTexture.Visible = false; foreach (Node no in levelTexture.GetChildren()) { if (no is Sprite) { Sprite starSprite = (Sprite)no; starSprite.Visible = false; } } } } }