public unsafe Tween PlayCastImmediate(Vector3 worldPosition, Transform parent)
        {
            //IL_002b: 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_0070: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b0: Unknown result type (might be due to invalid IL or missing references)
            //IL_00ba: Expected O, but got Unknown
            InitMove();
            Tween animationTween = m_animationTween;

            if (animationTween != null)
            {
                TweenExtensions.Kill(animationTween, false);
            }
            m_content.SetParent(parent, true);
            m_content.set_position(worldPosition);
            m_canvasGroup.set_alpha(0f);
            m_subContent.set_localRotation(Quaternion.Euler(0f, 0f, 45f));
            m_subContent.set_anchoredPosition(new Vector2(0f, 200f));
            Sequence val = DOTween.Sequence();

            TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 1f, 1f), 18));
            TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            m_animationTween = val;
            return(m_animationTween);
        }
예제 #2
0
        private unsafe void DisplayPedestalInfo(bool display)
        {
            //IL_008e: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b6: Unknown result type (might be due to invalid IL or missing references)
            //IL_012f: Unknown result type (might be due to invalid IL or missing references)
            //IL_0161: 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_018f: Expected O, but got Unknown
            Sequence pedestalTweenSequence = m_pedestalTweenSequence;

            if (pedestalTweenSequence != null)
            {
                TweenExtensions.Kill(pedestalTweenSequence, false);
            }
            Sequence val = DOTween.Sequence();

            if (display)
            {
                m_pedestalSpellAbilityBGCanvasGroup.get_gameObject().SetActive(true);
                m_pedestalSpellAbilityMainCanvasGroup.get_gameObject().SetActive(true);
                TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityMainCanvasGroup, 1f, 0.2f));
                TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityBGCanvasGroup, 1f, 0.2f));
                TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityBgRectTransform, Vector2.get_zero(), 0.2f, false), 7));
                TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityMainRectTransform, Vector2.get_zero(), 0.2f, false), 7));
            }
            else
            {
                TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityMainCanvasGroup, 0f, 0.2f));
                TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityBGCanvasGroup, 0f, 0.2f));
                TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityBgRectTransform, new Vector2(0f, 30f), 0.2f, false), 7));
                TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityMainRectTransform, new Vector2(0f, 30f), 0.2f, false), 7));
                TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            }
            m_pedestalTweenSequence = val;
        }
예제 #3
0
        protected unsafe virtual Sequence TweenOutSequence()
        {
            //IL_0093: Unknown result type (might be due to invalid IL or missing references)
            //IL_00af: 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_0105: Unknown result type (might be due to invalid IL or missing references)
            //IL_010f: Expected O, but got Unknown
            //IL_0157: Unknown result type (might be due to invalid IL or missing references)
            //IL_0192: Unknown result type (might be due to invalid IL or missing references)
            //IL_019c: Expected O, but got Unknown
            Sequence val = m_currentTweenSequence = DOTween.Sequence();

            enableScrollButtons = false;
            float num = (m_config.outTweenDelayByElement >= 0f) ? m_config.outTweenDelayByElement : ((0f - m_config.outTweenDelayByElement) * (float)(m_elements.Count - 1));

            for (int i = 0; i < m_elements.Count; i++)
            {
                T element = m_elements[i];
                TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(element.get_transform(), m_outPosition.get_localPosition(), m_config.outTweenDuration, false), m_config.outTweenEase));
                _003C_003Ec__DisplayClass49_0 _003C_003Ec__DisplayClass49_;
                TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScaleX(element.get_transform(), m_config.outScale, m_config.outTweenDuration), m_config.outTweenEase), new TweenCallback((object)_003C_003Ec__DisplayClass49_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)));
                Sequence obj  = val;
                float    num2 = num;
                T        val2 = element;
                TweenSettingsExtensions.Insert(obj, num2, TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)val2, (IntPtr)(void *) /*OpCode not supported: LdVirtFtn*/), new DOSetter <float>((object)_003C_003Ec__DisplayClass49_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 0f, m_config.outTweenDuration), m_config.outTweenEase));
                num += m_config.outTweenDelayByElement;
            }
            TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            return(val);
        }
예제 #4
0
        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*/));
            }
        }
예제 #5
0
 public unsafe void Close(bool forceImmediate = false)
 {
     //IL_0074: Unknown result type (might be due to invalid IL or missing references)
     //IL_00b9: 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_00e8: Expected O, but got Unknown
     if (forceImmediate)
     {
         Tween tween = m_tween;
         if (tween != null)
         {
             tween.onKill.Invoke();
         }
         OnClosed();
     }
     else if (m_state != ContainerDrawerState.Closed && m_state != ContainerDrawerState.Closing)
     {
         Tween tween2 = m_tween;
         if (tween2 != null)
         {
             TweenExtensions.Kill(tween2, false);
         }
         m_state = ContainerDrawerState.Closing;
         m_mask.set_enabled(true);
         m_canvasGroup.set_alpha(1f);
         m_content.get_transform().set_localPosition(m_basePosition);
         Sequence val = DOTween.Sequence();
         TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 0f, 0.3f), 19));
         TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(m_content, m_hiddenPosition, 0.3f, false), 19));
         TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
         m_tween = val;
     }
 }
		public unsafe void OnEndDrag(PointerEventData eventData)
		{
			//IL_004a: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f9: Unknown result type (might be due to invalid IL or missing references)
			//IL_0103: Expected O, but got Unknown
			if (!dragging)
			{
				return;
			}
			m_lastEvent = eventData;
			bool flag = false;
			bool flag2 = true;
			bool flag3 = true;
			bool flag4 = true;
			int i = 0;
			for (int count = m_candidates.Count; i < count; i++)
			{
				DragNDropClient dragNDropClient = m_candidates[i];
				if (dragNDropClient.activeInHierarchy && RectTransformUtility.RectangleContainsScreenPoint(dragNDropClient.rectTransform, eventData.get_position(), eventData.get_pressEventCamera()))
				{
					flag2 = dragNDropClient.OnDrop(m_copy, eventData);
					flag = true;
					break;
				}
			}
			if (!flag)
			{
				flag2 = m_sourceClient.OnDropOut(m_copy, eventData);
				flag3 = !flag2;
			}
			else
			{
				this.OnDragEndSuccessful?.Invoke();
			}
			if (flag2)
			{
				if (flag3)
				{
					Object.Destroy(m_copy.get_gameObject());
				}
				else
				{
					m_tweenDestroy = m_copy.DestroySequence();
					if (m_tweenDestroy == null)
					{
						Object.Destroy(m_copy.get_gameObject());
					}
					else
					{
						TweenSettingsExtensions.OnKill<Tween>(m_tweenDestroy, new TweenCallback((object)this, (IntPtr)(void*)/*OpCode not supported: LdFtn*/));
						flag4 = false;
					}
				}
			}
			if (flag4)
			{
				EndDragAction();
			}
		}
예제 #7
0
        public unsafe void GotoEditAnim()
        {
            //IL_005e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0068: Expected O, but got Unknown
            this.StartCoroutine(PlayFadeSequence(toOut: true));
            DisplayPedestalInfo(display: true);
            Sequence obj = DOTween.Sequence();

            TweenSettingsExtensions.Append(obj, DOTweenModuleUI.DOFade(m_weaponListCanvas, 0f, 0.3f));
            TweenSettingsExtensions.Insert(obj, 0f, DOTweenModuleUI.DOFade(m_validateCanvas, 0f, 0.3f));
            TweenSettingsExtensions.OnKill <Sequence>(obj, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
        }
예제 #8
0
        private unsafe Sequence Sequence()
        {
            //IL_001e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0028: Expected O, but got Unknown
            Tween currentTween = m_currentTween;

            if (currentTween != null)
            {
                TweenExtensions.Kill(currentTween, true);
            }
            return(m_currentTween = TweenSettingsExtensions.OnKill <Sequence>(DOTween.Sequence(), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)));
        }
        protected unsafe override Tween OnExitTargetTween()
        {
            //IL_0011: Unknown result type (might be due to invalid IL or missing references)
            //IL_003a: Unknown result type (might be due to invalid IL or missing references)
            //IL_005e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0068: Expected O, but got Unknown
            Sequence obj = DOTween.Sequence();

            TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalRotate(m_subContent, Vector3.get_zero(), 0.5f, 0), 18));
            TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_subContent, Vector2.get_zero(), 0.5f, false), 18));
            return(TweenSettingsExtensions.OnKill <Sequence>(obj, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)));
        }
예제 #10
0
 public unsafe void Open(string message)
 {
     //IL_0042: Unknown result type (might be due to invalid IL or missing references)
     //IL_0079: Unknown result type (might be due to invalid IL or missing references)
     //IL_0091: Unknown result type (might be due to invalid IL or missing references)
     //IL_009b: Expected O, but got Unknown
     m_messageField.SetText(message);
     if (m_state == NotificationWindowState.OPENING)
     {
         Sequence val = DOTween.Sequence();
         TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 1f, m_style.fadeInDuration), m_style.fadeInEase));
         TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.get_transform(), 1f, m_style.fadeInDuration), m_style.scaleFadeInEase));
         TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
         m_tween = val;
     }
 }
예제 #11
0
 public unsafe void Close()
 {
     //IL_0050: 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_0072: Expected O, but got Unknown
     if (m_state != NotificationWindowState.CLOSING)
     {
         m_state = NotificationWindowState.CLOSING;
         Tween tween = m_tween;
         if (tween != null)
         {
             TweenExtensions.Kill(tween, false);
         }
         Sequence val = DOTween.Sequence();
         TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 0f, m_style.fadeOutDuration), m_style.fadeOutEase));
         TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
         m_tween = val;
     }
 }
예제 #12
0
        public unsafe Sequence LeaveEditMode()
        {
            //IL_0097: Unknown result type (might be due to invalid IL or missing references)
            //IL_00a1: Expected O, but got Unknown
            if (!m_editMode)
            {
                return(DOTween.Sequence());
            }
            m_editMode      = false;
            m_uneditedValue = null;
            ItemDragNDropListener.instance.OnDragEndSuccessful -= OnRequestValidation;
            ItemDragNDropListener.instance.OnDragEnd           -= OnDragFail;
            m_saveCancelCanvasGroup.get_gameObject().SetActive(true);
            m_saveCancelCanvasGroup.set_alpha(1f);
            UpdateEditModeUI();
            Sequence obj = DOTween.Sequence();

            TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.OnKill <Tweener>(DOTweenModuleUI.DOFade(m_saveCancelCanvasGroup, 0f, m_backgroundTweenDuration), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)));
            return(obj);
        }
예제 #13
0
        public unsafe Sequence EnterEditMode(EditModeSelection selection)
        {
            //IL_0079: 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_0094: Expected O, but got Unknown
            if (m_editMode)
            {
                return(null);
            }
            m_editMode      = true;
            m_uneditedValue = m_value?.Clone();
            m_saveButton.set_interactable(false);
            m_saveCancelCanvasGroup.get_gameObject().SetActive(true);
            m_saveCancelCanvasGroup.set_alpha(0f);
            Sequence obj = DOTween.Sequence();

            TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.OnKill <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_saveCancelCanvasGroup, 1f, m_backgroundTweenDuration), m_backgroundTweenEase), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)));
            UpdateEditModeUI();
            SetEditModeSelection(selection);
            return(obj);
        }
예제 #14
0
        private unsafe Tween TweenLists()
        {
            //IL_002b: Unknown result type (might be due to invalid IL or missing references)
            //IL_003d: Unknown result type (might be due to invalid IL or missing references)
            //IL_006f: 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_00f1: Unknown result type (might be due to invalid IL or missing references)
            //IL_0103: Unknown result type (might be due to invalid IL or missing references)
            //IL_0135: Unknown result type (might be due to invalid IL or missing references)
            //IL_0153: Unknown result type (might be due to invalid IL or missing references)
            //IL_018a: Unknown result type (might be due to invalid IL or missing references)
            //IL_0194: Expected O, but got Unknown
            //IL_01d2: Unknown result type (might be due to invalid IL or missing references)
            //IL_01dc: Expected O, but got Unknown
            Tween val  = null;
            Tween val2 = null;

            if (Object.op_Implicit(m_currentDisplayedTransform))
            {
                Sequence obj = DOTween.Sequence();
                TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_currentDisplayedTransform, m_outPoint.get_anchoredPosition(), m_moveTweenDuration, false), m_moveTweenEase));
                TweenSettingsExtensions.SetEase <Sequence>(TweenSettingsExtensions.Insert(obj, 0f, DOTweenModuleUI.DOFade(m_currentListCanvasGroup, 0f, m_fadeTweenDuration)), m_fadeTweenEase);
                TweenSettingsExtensions.Insert(obj, 0f, m_filterParent.TweenOut(m_moveTweenDuration, m_moveTweenEase));
                val = obj;
            }
            if (Object.op_Implicit(m_nextDisplayedTransform))
            {
                m_onSwapEditMode.Invoke();
                m_nextListCanvasGroup.set_alpha(0f);
                m_nextDisplayedTransform.get_gameObject().SetActive(true);
                Sequence obj2 = DOTween.Sequence();
                TweenSettingsExtensions.Insert(obj2, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_nextDisplayedTransform, m_inPoint.get_anchoredPosition(), m_moveTweenDuration, false), m_moveTweenEase));
                TweenSettingsExtensions.SetEase <Sequence>(TweenSettingsExtensions.Insert(obj2, 0f, DOTweenModuleUI.DOFade(m_nextListCanvasGroup, 1f, m_fadeTweenDuration)), m_fadeTweenEase);
                TweenSettingsExtensions.Insert(obj2, 0f, m_filterParent.TweenIn(m_moveTweenDuration, m_moveTweenEase));
                val2 = obj2;
            }
            if (m_currentDisplayedTransform == null && m_nextDisplayedTransform == null)
            {
                return(null);
            }
            TweenSettingsExtensions.OnStart <Tween>(val2, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            Sequence val3 = DOTween.Sequence();

            if (val != null)
            {
                TweenSettingsExtensions.Append(val3, val);
            }
            if (val2 != null)
            {
                if (val != null)
                {
                    TweenSettingsExtensions.Insert(val3, m_moveTweenDuration / 2f, val2);
                }
                else
                {
                    TweenSettingsExtensions.Append(val3, val2);
                }
            }
            TweenSettingsExtensions.OnKill <Sequence>(val3, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            return(val3);
        }
예제 #15
0
 public static T OnKill <T>(this T t, TweenCallback action) where T : Tween
 {
     return(TweenSettingsExtensions.OnKill(t, () => { action(); action = null; }));
 }
예제 #16
0
 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 unsafe Tween EndCastImmediate()
 {
     //IL_001c: Unknown result type (might be due to invalid IL or missing references)
     //IL_0026: Expected O, but got Unknown
     return(TweenSettingsExtensions.OnKill <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 0f, 0.25f), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)));
 }