public void OnPointerClick(PointerEventData eventData) { //IL_0051: Unknown result type (might be due to invalid IL or missing references) if (!m_draggingInternal && !DragNDropListener.instance.dragging && m_enableDnd && m_elementState == DndElementState.Idle && (this.OnDragBeginRequest == null || this.OnDragBeginRequest())) { m_elementState = DndElementState.SimulatedDrag; BeginDrag(); DragNDropListener.instance.OnBeginDrag(eventData.get_position(), m_camera, m_content); } }
public void OnEnterTarget() { if (!m_onTarget && (m_elementState == DndElementState.Drag || m_elementState == DndElementState.SimulatedDrag)) { if (m_elementState == DndElementState.Drag) { m_elementState = DndElementState.DragTargeting; } if (m_elementState == DndElementState.SimulatedDrag) { m_elementState = DndElementState.SimulatedDragTargeting; } m_onTarget = true; Tween animationTween = m_animationTween; if (animationTween != null) { TweenExtensions.Kill(animationTween, false); } m_animationTween = OnEnterTargetTween(); } }
private unsafe void EndDrag(bool force, DndCastBehaviour behaviour) { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Unknown result type (might be due to invalid IL or missing references) //IL_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01f6: Unknown result type (might be due to invalid IL or missing references) //IL_0200: Expected O, but got Unknown //IL_0224: Unknown result type (might be due to invalid IL or missing references) //IL_022e: Expected O, but got Unknown if (m_elementState != DndElementState.Drag && m_elementState != DndElementState.SimulatedDrag && !force) { return; } DragNDropListener.instance.OnEndDrag(); m_elementState = DndElementState.Idle; m_content.SetParent(m_contentParent); if (behaviour == DndCastBehaviour.MoveBack) { Rect rect = m_content.get_rect(); Vector2 anchoredPosition = m_content.get_anchoredPosition(); Vector2 val = m_contentPivot - m_content.get_pivot(); Vector2 val2 = default(Vector2); val2._002Ector(rect.get_width() * ((IntPtr)(void *)val).x, rect.get_height() * ((IntPtr)(void *)val).y); m_content.set_anchorMin(m_contentAnchorMin); m_content.set_anchorMax(m_contentAnchorMax); m_content.set_sizeDelta(m_contentSizeDelta); m_content.set_pivot(m_contentPivot); m_content.set_anchoredPosition(new Vector2(((IntPtr)(void *)anchoredPosition).x + ((IntPtr)(void *)val2).x, ((IntPtr)(void *)anchoredPosition).y + ((IntPtr)(void *)val2).y)); m_subContent.set_anchorMin(Vector2.get_zero()); m_subContent.set_anchorMax(Vector2.get_one()); m_subContent.set_sizeDelta(Vector2.get_zero()); Tween animationTween = m_animationTween; if (animationTween != null) { TweenExtensions.Kill(animationTween, false); } Sequence val3 = DOTween.Sequence(); TweenSettingsExtensions.Insert(val3, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(m_content, m_contentPosition, 0.3f, true), 18)); TweenSettingsExtensions.Insert(val3, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_content, Vector3.get_one(), 0.3f), 27)); TweenSettingsExtensions.Insert(val3, 0f, DOTweenModuleUI.DOAnchorPos(m_subContent, Vector2.op_Implicit(Vector3.get_zero()), 0.3f, false)); TweenSettingsExtensions.Insert(val3, 0f, ShortcutExtensions.DOLocalRotate(m_subContent, Vector3.get_zero(), 0.3f, 0)); m_animationTween = TweenSettingsExtensions.OnKill <Sequence>(val3, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); } else { m_animationTween = TweenSettingsExtensions.OnKill <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 0f, 0.3f), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); } m_wasOnTarget = m_onTarget; m_buttonPressed = false; m_onTarget = false; }
public void StartCast() { m_elementState = DndElementState.Casting; }