public void Hit(IPlayer player) { SoundEffects.Instance.PlayBumpSound(); if (count < 10) { item = new Coin(game, new Vector2(Position.X, Position.Y - 1)); item.AutoCosume(50); item.Velocity = new LVector2(Coin.popVelocity.Vector, Limit <Vector2> .NONE); item.Position = new Vector2(Position.X, Position.Y - 1); game.WorldLoader.Items.Add(item); count++; sprite.Bump(); } }