private bool IsDragValid()
 {
     if (m_dragNDropValidator != null)
     {
         return(m_dragNDropValidator.IsValidDrag(m_value));
     }
     return(true);
 }
예제 #2
0
 public void OnBeginDrag(PointerEventData evt)
 {
     //IL_0010: Unknown result type (might be due to invalid IL or missing references)
     if (m_enableDragAndDrop && RectTransformUtility.RectangleContainsScreenPoint(m_rectTransform, evt.get_position(), evt.get_pressEventCamera()) && m_value != null && (m_dragNDropValidator == null || m_dragNDropValidator.IsValidDrag(m_value)))
     {
         ItemDragNDropListener.instance.OnBeginDrag(evt, m_cellRendererInstance);
         if (m_removeOnDrag)
         {
             SetValue(null);
         }
     }
 }