private void GenerateHexagons(bool hasAnimation) { ClearChildren(); for (var x = -1; x < GameProvider.GameInstance.ScreenBounds.Width/Hexagon.Width + 1; x++) { for (var y = -1; y < GameProvider.GameInstance.ScreenBounds.Height / Hexagon.HeightHalf + 1; y++) { var hexagon = new Hexagon(_hexagonTexture, x, y, hasAnimation); AddChildElement(hexagon); } } }