public void Update() { if (!_car.IsOnAllowedSurface) { LapInvalidated?.Invoke(this); } }
private void EnsureLapInvalidated(RequiredModel model) { if (!model.InMenus && !model.LapIsValid && _previousModel?.LapIsValid == true) { LapInvalidated?.Invoke(this, model); } }
protected virtual void OnLapInvalidated(LapEventArgs e) { RevertSectorChanges(e.Lap); LapInvalidated?.Invoke(this, e); }