public void AddBackground(ParallaxBackgroundItem background) { _backgrounds.Add(background); _sorted = false; }
public void AddBackground(Sprite sprite, float xParallaxSpeed, int layer, Vector2 position) { ParallaxBackgroundItem background = new ParallaxBackgroundItem(this, sprite, xParallaxSpeed, layer, position); AddBackground(background); }
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); }