Exemple #1
0
 public void Update()
 {
     if (!_car.IsOnAllowedSurface)
     {
         LapInvalidated?.Invoke(this);
     }
 }
Exemple #2
0
 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);
 }