Esempio n. 1
0
 public void AddBackground(ParallaxBackgroundItem background)
 {
     _backgrounds.Add(background);
     _sorted = false;
 }
Esempio n. 2
0
        public void AddBackground(Sprite sprite, float xParallaxSpeed, int layer, Vector2 position)
        {
            ParallaxBackgroundItem background = new ParallaxBackgroundItem(this, sprite, xParallaxSpeed, layer, position);

            AddBackground(background);
        }
Esempio n. 3
0
        public void AddBackground(Sprite sprite, Vector2 parallaxSpeed, int layer, Vector2 position, Vector2 size)
        {
            ParallaxBackgroundItem background = new ParallaxBackgroundItem(this, sprite, parallaxSpeed, layer, position, size);

            AddBackground(background);
        }