예제 #1
0
 public void AcceptDrop(int index, CUDropType dropType)
 {
     if (CanDrop(index, dropType))
     {
         dropHandler(SMLevelListDragSource.DragData);
         DragAndDrop.AcceptDrag();
     }
 }
예제 #2
0
 public bool CanDrop(int index, CUDropType dropType)
 {
     if (dropType == CUDropType.AtPosition && (SMSceneListDragSource.IsSender || SMLevelListDragSource.IsSender))
     {
         DragAndDrop.visualMode = DragAndDropVisualMode.Link;
         return(true);
     }
     return(false);
 }
예제 #3
0
 public bool CanDrop(int index, CUDropType dropType)
 {
     if (dropType == CUDropType.IntoContainer && SMLevelListDragSource.IsSender)
     {
         DragAndDrop.visualMode = DragAndDropVisualMode.Link;
         return(true);
     }
     return(false);
 }
예제 #4
0
 public void AcceptDrop(int index, CUDropType dropType)
 {
     if (CanDrop(index, dropType))
     {
         if (SMSceneListDragSource.IsSender)
         {
             dropHandler(SMSceneListDragSource.DragData, index, typeof(SMSceneListDragSource));
         }
         else
         {
             dropHandler(SMLevelListDragSource.DragData, index, typeof(SMLevelListDragSource));
         }
         DragAndDrop.AcceptDrag();
     }
 }