コード例 #1
0
ファイル: VideoWindow.cs プロジェクト: swipswaps/FMVTools
 /// <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;
 }
コード例 #2
0
ファイル: VideoWindow.cs プロジェクト: swipswaps/FMVTools
 /// <summary>
 /// Initialisate the lists when the window is created
 /// </summary>
 protected virtual void OnEnable()
 {
     videoClipEvents       = new VideoClipEvents();
     editorVideoClipEvents = new EditorVideoClipEvents();
 }