コード例 #1
0
        /// <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);
        }
コード例 #2
0
ファイル: Level.cs プロジェクト: liwq-net/SilverSprite
        /// <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);
        }
コード例 #3
0
ファイル: Level.cs プロジェクト: BenFradet/OldXnaStuff
 private void OnGemCollected(Gem gem, Player player)
 {
     Score += gem.PointValue;
     gem.OnCollected(player);
 }