Ejemplo n.º 1
0
 public void AddBackground(ParallaxBackgroundItem background)
 {
     _backgrounds.Add(background);
     _sorted = false;
 }
Ejemplo 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);
        }
Ejemplo 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);
        }