Exemple #1
0
        public int GetGolfBallScore(Projectile golfBall)
        {
            int golfBallId = GetGolfBallId(golfBall);
            GolfBallTrackRecord golfBallTrackRecord = _hitRecords[golfBallId];

            if (golfBallTrackRecord == null)
            {
                return(0);
            }
            return((int)((float)golfBallTrackRecord.GetAccumulatedScore() * ScoreAdjustment));
        }
Exemple #2
0
        public int GetGolfBallScore(Projectile golfBall)
        {
            GolfBallTrackRecord hitRecord = this._hitRecords[this.GetGolfBallId(golfBall)];

            return(hitRecord == null ? 0 : (int)((double)hitRecord.GetAccumulatedScore() * (double)this.ScoreAdjustment));
        }