public override void OnPowerup(UserControlledSprite sprite)
 {
     if (sprite.CurHealth < sprite.MaxHealth)
     {
         sprite.Heal();
         Manager.removeSprite(this);
     }
 }
 public SpriteManager(Game game, Camera2D camera, UserControlledSprite player)
     : base(game)
 {
     this.Camera = camera;
     this.spriteList = new List<Sprite>();
     this.Player = player;
     this.Player.Manager = this;
     this.contentManager = new ContentManager(game);
     spriteBatch = new SpriteBatch(
         Game.GraphicsDevice);
     this.levelManager = new LevelManager(this);
     this.restoreList = new List<Sprite>();
 }
 public override void OnPowerup(UserControlledSprite sprite)
 {
     sprite.Heal();
     sprite.TotalCola++;
     Manager.removeSprite(this);
 }