/// <summary> /// Determines whether the add event UI should be drawn /// </summary> private void ChangeAddingEventState() { if (isAddingEvent) { // save the event if (editorVideoClipEvents == null) { editorVideoClipEvents = new EditorVideoClipEvents(); } editorVideoClipEvents.Add(currentEvent); videoClipEvents = editorVideoClipEvents.GetClipEvents(); } else { currentEvent = new EditorVideoClipEvent(); } isAddingEvent = !isAddingEvent; }
/// <summary> /// Initialisate the lists when the window is created /// </summary> protected virtual void OnEnable() { videoClipEvents = new VideoClipEvents(); editorVideoClipEvents = new EditorVideoClipEvents(); }