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); } }
private static void Reset() { _dragData = null; _dragId = -1; _waitingToApplyDrag = false; }