private void Load(BaseGame game) { this.game = game; trackBase = new Box { Depth = 10.0f, Origin = Anchor.BottomCentre, RelativePositionAxes = Axes.Both, Position = new Vector2(0.5f, 1.0f), WrapTexture = true, EdgeSmoothness = Vector2.Zero, }; Add(trackBase); Add(playfieldContainer = new Container { Origin = Anchor.BottomCentre, RelativePositionAxes = Axes.Both, Position = new Vector2(0.5f, 1.0f), }); renderer = new TrackRenderer2D(playfieldContainer); renderer.Load(game); trackBase.Texture = renderer.TrackTexture; }