public void Create(ContentManager content, String texturePath, float screenWidth, float speed, int Layer)
        {
            ParallaxBackground NewPB = new ParallaxBackground();

            NewPB.Initialize(content, texturePath, speed);
            Add(NewPB, Layer);
        }
Пример #2
0
 private void Add(ParallaxBackground PB, int Layer)
 {
     Backgrounds[Layer] = PB;
 }
Пример #3
0
 public void Create(ContentManager content, String texturePath, float screenWidth, float speed, int Layer)
 {
     ParallaxBackground NewPB = new ParallaxBackground();
     NewPB.Initialize(content, texturePath, speed);
     Add(NewPB, Layer);
 }
 private void Add(ParallaxBackground PB, int Layer)
 {
     Backgrounds[Layer] = PB;
 }