Пример #1
0
 public void Update()
 {
     if (!_car.IsOnAllowedSurface)
     {
         LapInvalidated?.Invoke(this);
     }
 }
Пример #2
0
 private void EnsureLapInvalidated(RequiredModel model)
 {
     if (!model.InMenus &&
         !model.LapIsValid && _previousModel?.LapIsValid == true)
     {
         LapInvalidated?.Invoke(this, model);
     }
 }
Пример #3
0
 protected virtual void OnLapInvalidated(LapEventArgs e)
 {
     RevertSectorChanges(e.Lap);
     LapInvalidated?.Invoke(this, e);
 }