private void Finished(object sender, FinishedEventArgs e) { if (e.Type != RaceEndType.Finished) { return; } if (!_active || !_started) { return; } _bestTrackTimes.Add(_thisTrackBest); var finished = new SplitTrack(_previousTrackTimes.LastOrDefault(), TimeSpan.FromMilliseconds(e.FinalTime), G.Sys.GameManager_.Level_.Name_); _previousTrackTimes.Add(finished); _started = false; ShowPressed(8f); _finished = true; }
public SplitTrack(SplitTrack oldTime, TimeSpan newTime, string trackName) { _old = oldTime.Total; _new = newTime; TrackName = trackName; }