/// <summary> /// Respawns this instance. /// </summary> private void respawn() { if (currentBonus.Type != BonusType.none) { currentBonus.StopBonus(); } currentBonus.Type = BonusType.invincible; currentBonus.BonusTime = 300; this.alive = true; this.velocity = Vector2.Zero; this.position.X = Game1.SCREENWIDTH / 2; this.position.Y = Game1.SCREENHEIGHT / 2; }