public override void Kill(List <GameObject> gameObjects) { SpriteManager.RemoveSprite(sprite); gameObjects.Remove(this); player.Locked = false; beamsparks.Kill(gameObjects); }
public override void Kill(List<GameObject> gameObjects) { SpriteManager.RemoveSprite(sprite); gameObjects.Remove(this); if (selectedSpell != 1) { Emittor explosion = new Emittor(game, SpriteManager.AddSprite(Textures.Pixeltexture), .3f, Color.Tomato, Color.Yellow, Color.Orange, 0.3f, 0.3f, sprite.Position, 3, (0), ((float)Math.PI * 2)); gameObjects.Add(explosion); } if (selectedSpell == 1) { firetail.Kill(gameObjects); } }