Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void Add(ParallaxBackground PB, int Layer)
 {
     Backgrounds[Layer] = PB;
 }