Exemple #1
0
        // Invoke Events.
        public void InvokeEvents(TimelineUnityEventClip clip)
        {
            int found = eventKeyTable.IndexOf(clip);

            if (found != -1)
            {
                eventValueTable[found].Invoke();
            }
        }
Exemple #2
0
 public void AddEvent(TimelineUnityEventClip clip)
 {
     ClearNullElements();
     if (eventKeyTable.IndexOf(clip) != -1)               // If Exist then return.
     {
         return;
     }
     eventKeyTable.Add(clip);
     eventValueTable.Add(new UnityEvent());
 }
Exemple #3
0
        public void RemoveEvent(TimelineUnityEventClip clip)
        {
            ClearNullElements();
            int found = eventKeyTable.IndexOf(clip);

            if (found != -1)
            {
                eventKeyTable.RemoveAt(found);
                eventValueTable.RemoveAt(found);
            }
        }
Exemple #4
0
 // Get index
 public int IndexOfEvents(TimelineUnityEventClip clip)
 {
     ClearNullElements();
     return(eventKeyTable.IndexOf(clip));
 }