Exemplo n.º 1
0
        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);
        }