Exemplo n.º 1
0
        private void UpdateTimeTrial()
        {
            this.HUD.SetTime(this.time.ToString());
            if (this.timeTrialData.type == "circuit")
            {
                this.HUD.SetLapTime(TimeManager.Format(this.lapManager.currentLapTime));
            }


            this.checkpointManager.Update(this.lapManager.onLast);

            this.player.HealPlayerIfDamaged();
            if (!this.setup.vehicleDamageOn)
            {
                this.player.FixVehicleIfDamaged();
            }
        }
Exemplo n.º 2
0
 public string ToString(bool includeMilliseconds = false)
 {
     return(TimeManager.Format(this.elapsed, includeMilliseconds));
 }
Exemplo n.º 3
0
 private void onNewLap()
 {
     this.audioManager.PlayCheckpointReachedSound();
     this.HUD.SetLap(this.lapManager.ToString());
     this.HUD.SetFastestTime(TimeManager.Format(this.lapManager.fastestLapTime));
 }