private void UpdateDiamonds(GameTime dt) { for (int i = 0; i < diamonds.Count; ++i) { Diamonds diam = diamonds[i]; diam.Update(dt); if (diam.BoundingCircle.Intersects(Player.BoundingRect)) { diamonds.RemoveAt(i--); CollectDiamond(diam, Player); } } }
private void CollectDiamond(Diamonds diam, Player pl) { score += Diamonds.AddPoints; diam.Collected(pl); }