/// <summary> /// Called when a gem is collected. /// </summary> /// <param name="gem">The gem that was collected.</param> /// <param name="collectedBy">The player who collected this gem.</param> private void OnGemCollected(Gem gem, Player collectedBy) { score += Gem.PointValue; gem.OnCollected(collectedBy); }
private void OnGemCollected(Gem gem, Player player) { Score += gem.PointValue; gem.OnCollected(player); }