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

            AddBackground(background);
        }
예제 #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);
        }