Example #1
0
 void TriggerEvents(PlaybackSpeed givenSpeed)
 {
     if (givenSpeed == PlaybackSpeed.Slow)
     {
         OnSlow?.Invoke();
     }
     else if (givenSpeed == PlaybackSpeed.Medium)
     {
         OnMedium?.Invoke();
     }
     else if (givenSpeed == PlaybackSpeed.Fast)
     {
         OnFast?.Invoke();
     }
 }
Example #2
0
 private void _OnFast()
 {
     OnFast?.Invoke(this, EventArgs.Empty);
 }