コード例 #1
0
 private void AddEventToList(List <TimingEvent> list, TrackEventDelegate newEvent, float eventTime)
 {
     if (IsValidEventTime(eventTime))
     {
         list.Add(new TimingEvent(newEvent, eventTime));
     }
     else
     {
         InvalidEventTimeGiven(eventTime);
     }
 }
コード例 #2
0
 public virtual void AddEventAtTime(TrackEventDelegate newEvent, float eventTime)
 {
     AddEventToList(momentaryEvents, newEvent, eventTime);
 }
コード例 #3
0
    public void AddEventAtTimeRemaining(TrackEventDelegate newEvent, float eventTimeRemaining)
    {
        float eventTime = GetTrackLength() - eventTimeRemaining;

        AddEventAtTime(newEvent, eventTime);
    }