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(); } }
public string ToString(bool includeMilliseconds = false) { return(TimeManager.Format(this.elapsed, includeMilliseconds)); }
private void onNewLap() { this.audioManager.PlayCheckpointReachedSound(); this.HUD.SetLap(this.lapManager.ToString()); this.HUD.SetFastestTime(TimeManager.Format(this.lapManager.fastestLapTime)); }