public unsafe void OnDrag(Vector2 screenPosition, Camera cam) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: Unknown result type (might be due to invalid IL or missing references) //IL_0046: Unknown result type (might be due to invalid IL or missing references) //IL_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0078: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_009e: Expected O, but got Unknown if (!dragging) { return; } Vector2 val = ((_003F?)m_snapScreenPosition) ?? screenPosition; Vector2 val2 = default(Vector2); if (RectTransformUtility.ScreenPointToLocalPointInRectangle(m_content, val, cam, ref val2) && !(m_previousPosition == val2)) { m_previousPosition = val2; Tween tweenViewPosition = m_tweenViewPosition; if (tweenViewPosition != null) { TweenExtensions.Kill(tweenViewPosition, false); } m_tweenViewPosition = TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos3D(m_dragObject, Vector2.op_Implicit(val2), m_moveTweenDuration, false), m_moveEase); TweenSettingsExtensions.OnKill <Tween>(m_tweenViewPosition, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); } }
private unsafe void ConfigureCellRenderer(CellRenderer cellRenderer, bool instant, bool andUpdate) { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0076: 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_0087: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0108: 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_0137: Unknown result type (might be due to invalid IL or missing references) RectTransform component = cellRenderer.GetComponent <RectTransform>(); component.SetParent(m_content, true); if (instant) { component.set_anchorMin(Vector2.get_zero()); component.set_anchorMax(Vector2.get_one()); component.set_pivot(new Vector2(0.5f, 0.5f)); component.set_sizeDelta(Vector2.get_zero()); component.set_anchoredPosition3D(Vector3.get_zero()); component.set_localScale(Vector3.get_one()); } else { Vector3 localPosition = component.get_localPosition(); component.set_localPosition(new Vector3(((IntPtr)(void *)localPosition).x, ((IntPtr)(void *)localPosition).y)); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorMin(component, Vector2.get_zero(), m_insertTweenDuration, false), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorMax(component, Vector2.get_one(), m_insertTweenDuration, false), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOPivot(component, new Vector2(0.5f, 0.5f), m_insertTweenDuration), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOSizeDelta(component, Vector2.get_zero(), m_insertTweenDuration, false), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos3D(component, Vector3.get_zero(), m_insertTweenDuration, false), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(component, 1f, m_insertTweenDuration), m_insertTweenEase); } cellRenderer.dragNDropClient = this; cellRenderer.SetConfigurator(m_cellRendererConfigurator, andUpdate); }
public void OnBeginDrag(Vector2 screenPosition, Camera cam, RectTransform dragObject) { //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0046: 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_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: 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_00c0: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) if (m_dragObject != null) { return; } dragging = true; UpdateCamera(); m_dragObject = dragObject; m_dragObject.SetParent(m_content, true); m_dragObject.set_anchoredPosition3D(Vector2.op_Implicit(m_dragObject.get_anchoredPosition())); TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_dragObject, m_scaleFactor, m_scaleTweenDuration), m_scaleEase); Vector2 val = ((_003F?)m_snapScreenPosition) ?? screenPosition; Vector2 val2 = default(Vector2); if (RectTransformUtility.ScreenPointToLocalPointInRectangle(m_content, val, cam, ref val2)) { m_previousPosition = val2; Tween tweenViewPosition = m_tweenViewPosition; if (tweenViewPosition != null) { TweenExtensions.Kill(tweenViewPosition, false); } m_tweenViewPosition = TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos3D(m_dragObject, Vector2.op_Implicit(val2), m_moveTweenDuration, false), m_moveEase); } this.OnDragBegin?.Invoke(); }