bool OnCanRecieve(GUIDragHandler.DragDatas recieverData, GUIDragHandler.DragDatas dragData) { if (dragData.customDragData == null && dragData.dragPaths.Length != 0) { foreach (string dragPath in dragData.dragPaths) { if (dragPath == null) { continue; } if (BundleManager.CanAddPathToBundle(dragPath, (string)recieverData.customDragData)) { return(true); } } return(false); } else { return(BundleManager.CanBundleParentTo((string)dragData.customDragData, (string)recieverData.customDragData)); } }