public void loadContent(ContentManager content, string texture, Vector2 position, float parallaxSpeed) { m_ParallaxSpeed = parallaxSpeed; layerContents = new LayerContent[3]; for (int i = 0; i < layerContents.Length; i++) { layerContents[i] = new LayerContent(); } foreach (LayerContent layer in layerContents) { layer.loadContent(content, texture); } layerContents[(int)LayerNames.A].position = new Vector2(position.X - layerContents[(int)LayerNames.A].Bounds.Width, position.Y); layerContents[(int)LayerNames.B].position = position; layerContents[(int)LayerNames.C].position = new Vector2(layerContents[(int)LayerNames.A].Bounds.Width, position.Y); }