public void Create(ContentManager content, String texturePath, float screenWidth, float speed, int Layer, float alpha) { ParallaxBackground NewPB = new ParallaxBackground(); NewPB.Initialize(content, texturePath, speed, alpha); Add(NewPB, Layer); }
private void Add(ParallaxBackground PB, int Layer) { Backgrounds[Layer] = PB; }