public override void Draw(GameTime gameTime)
{
foreach (GameComponent component in _childComponents)
{
if (component is DrawableGameComponent)
{
var drawComponent = component as DrawableGameComponent;
if (drawComponent.Visible)
drawComponent.Draw(gameTime);
}
}
base.Draw(gameTime);
}