Esempio n. 1
0
 public static void StartDrag(int dragId, EditorWindow editorWindow, IList draggableList, int draggedItemIndex, object optionalData = null)
 {
     if (_dragData == null)
     {
         Reset();
         _editorWindow = editorWindow;
         _editor       = null;
         _dragId       = dragId;
         _dragData     = new GUIDragData(draggableList, draggableList [draggedItemIndex], draggedItemIndex, optionalData);
     }
 }
Esempio n. 2
0
 private static void Reset()
 {
     _dragData           = null;
     _dragId             = -1;
     _waitingToApplyDrag = false;
 }