예제 #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();
     }
 }
예제 #2
0
 private void _OnFast()
 {
     OnFast?.Invoke(this, EventArgs.Empty);
 }