Beispiel #1
0
        private unsafe void StopCharacterFocus()
        {
            //IL_0090: Unknown result type (might be due to invalid IL or missing references)
            //IL_009a: Expected O, but got Unknown
            switch (m_characterFocusTweenState)
            {
            case CharacterFocusTweenState.Out:
                return;

            case CharacterFocusTweenState.In:
                TweenExtensions.Kill(m_characterFocusTween, false);
                m_characterFocusTween = null;
                break;

            default:
                throw new ArgumentOutOfRangeException();

            case CharacterFocusTweenState.None:
                break;
            }
            float num = 0.333333343f * m_characterFocusFactor / 0.6f;

            if (Mathf.Approximately(0f, num))
            {
                m_characterFocusTweenState = CharacterFocusTweenState.None;
                return;
            }
            m_characterFocusTween = TweenSettingsExtensions.OnComplete <TweenerCore <float, float, FloatOptions> >(TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 0f, num), 7), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            if (m_characterFocusTweenState == CharacterFocusTweenState.None)
            {
                TweenSettingsExtensions.SetDelay <TweenerCore <float, float, FloatOptions> >(m_characterFocusTween, 0.0833333358f);
            }
            m_characterFocusTweenState = CharacterFocusTweenState.Out;
        }
Beispiel #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;
        }
Beispiel #3
0
        public void Highlight(bool highlight)
        {
            //IL_0079: Unknown result type (might be due to invalid IL or missing references)
            if (m_highlighted == highlight || m_previewResource == null || !m_previewResource.highlightEnabled)
            {
                return;
            }
            Tween highlightTweener = m_highlightTweener;

            if (highlightTweener != null && TweenExtensions.IsPlaying(highlightTweener))
            {
                TweenExtensions.Kill(m_highlightTweener, true);
                m_highlightTweener = null;
            }
            if (highlight && m_image != null)
            {
                float highlightPunch = m_previewResource.highlightPunch;
                m_highlightTweener = ShortcutExtensions.DOPunchScale(m_image.get_transform(), new Vector3(highlightPunch, highlightPunch, highlightPunch), m_previewResource.highlightDuration, m_previewResource.highlightVibrato, m_previewResource.highlightElasticity);
                int highlightLoopCount = m_previewResource.highlightLoopCount;
                if (highlightLoopCount != 1)
                {
                    TweenSettingsExtensions.SetLoops <Tween>(m_highlightTweener, highlightLoopCount);
                }
            }
            m_highlighted = highlight;
        }
Beispiel #4
0
 private unsafe void ShowCategory(OptionCategory selectedCategory)
 {
     //IL_00a5: Unknown result type (might be due to invalid IL or missing references)
     //IL_00af: Expected O, but got Unknown
     //IL_00cb: Unknown result type (might be due to invalid IL or missing references)
     //IL_00d5: Expected O, but got Unknown
     if (selectedCategory == m_selectedCategory)
     {
         return;
     }
     if (m_transitionTweenSequence != null && TweenExtensions.IsActive(m_transitionTweenSequence))
     {
         TweenExtensions.Kill(m_transitionTweenSequence, false);
         if (m_previousCategory != null)
         {
             m_previousCategory.SetVisible(value: false);
         }
     }
     m_previousCategory        = m_selectedCategory;
     m_selectedCategory        = selectedCategory;
     m_transitionTweenSequence = DOTween.Sequence();
     if (m_previousCategory != null)
     {
         TweenSettingsExtensions.Append(m_transitionTweenSequence, m_previousCategory.DoFade(0f, m_transitionDuration));
         TweenSettingsExtensions.AppendCallback(m_transitionTweenSequence, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     }
     if (m_selectedCategory != null)
     {
         TweenSettingsExtensions.AppendCallback(m_transitionTweenSequence, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
         TweenSettingsExtensions.Append(m_transitionTweenSequence, m_selectedCategory.DoFade(1f, m_transitionDuration));
     }
 }
Beispiel #5
0
        public Sequence Open()
        {
            //IL_00ab: 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_015a: Unknown result type (might be due to invalid IL or missing references)
            if (m_openTweenSequence != null && TweenExtensions.IsActive(m_openTweenSequence))
            {
                TweenExtensions.Kill(m_openTweenSequence, false);
            }
            m_openTweenSequence = DOTween.Sequence();
            int   num            = m_statLines.Count + 2;
            float num2           = Mathf.Min(m_statData.openBoardDuration, m_statData.openBoardLineTweenDuration);
            float num3           = (m_statData.openBoardDuration - num2) / (float)num;
            float openBoardDelay = m_statData.openBoardDelay;

            m_playerLine.canvasGroup.set_alpha(0f);
            TweenSettingsExtensions.Insert(m_openTweenSequence, openBoardDelay, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_playerLine.canvasGroup, 1f, num2), m_statData.openBoardLineTweenEase));
            openBoardDelay += num3;
            for (int i = 0; i < m_statLines.Count; i++)
            {
                StatValueLine statValueLine = m_statLines[i];
                statValueLine.canvasGroup.set_alpha(0f);
                TweenSettingsExtensions.Insert(m_openTweenSequence, openBoardDelay, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(statValueLine.canvasGroup, 1f, num2), m_statData.openBoardLineTweenEase));
                openBoardDelay += num3;
            }
            m_teamScoreLine.set_alpha(0f);
            TweenSettingsExtensions.Insert(m_openTweenSequence, openBoardDelay, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_teamScoreLine, 1f, num2), m_statData.openBoardLineTweenEase));
            return(m_openTweenSequence);
        }
 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;
     }
 }
Beispiel #7
0
 protected override void OnDeinit()
 {
     if (this.seqcloud != null)
     {
         TweenExtensions.Kill(this.seqcloud, false);
     }
 }
        public void Deinit()
        {
            int num   = 0;
            int count = this.seqs.Count;

            while (num < count)
            {
                Sequence sequence = this.seqs[num];
                if (sequence != null)
                {
                    TweenExtensions.Kill(sequence, false);
                }
                num++;
            }
            int num3 = 0;
            int num4 = this.prev_effects.Count;

            while (num3 < num4)
            {
                ShortcutExtensions.DOKill(this.prev_effects[num3].transform, false);
                GameLogic.EffectCache(this.prev_effects[num3]);
                num3++;
            }
            this.prev_effects.Clear();
            this.seqs.Clear();
        }
Beispiel #9
0
 protected override void OnDeInit()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
     }
 }
        public unsafe void SetStartLife(int value, PlayerType playerType)
        {
            //IL_0007: Unknown result type (might be due to invalid IL or missing references)
            //IL_000c: Unknown result type (might be due to invalid IL or missing references)
            //IL_000d: Unknown result type (might be due to invalid IL or missing references)
            //IL_0013: Unknown result type (might be due to invalid IL or missing references)
            //IL_0018: Unknown result type (might be due to invalid IL or missing references)
            //IL_001b: Unknown result type (might be due to invalid IL or missing references)
            //IL_002c: 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)
            Color playerColor = m_colors.GetPlayerColor(playerType);
            Color color       = playerColor * 0.5f;

            color.a = ((IntPtr)(void *)playerColor).a;
            m_background.set_color(color);
            m_imageFill.set_color(playerColor);
            if (m_targetBaseLife != value || m_targetLife != value)
            {
                if (m_lifeTween != null)
                {
                    TweenExtensions.Kill(m_lifeTween, false);
                    m_lifeTween = null;
                }
                if (m_baseLifeTween != null)
                {
                    TweenExtensions.Kill(m_baseLifeTween, false);
                    m_baseLifeTween = null;
                }
                m_currentLife     = value;
                m_targetLife      = value;
                m_currentBaseLife = value;
                m_targetBaseLife  = value;
                Refresh();
            }
        }
        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);
        }
    protected override void OnClose()
    {
        if (this.mHPCtrl != null)
        {
            this.mHPCtrl.DeInit();
        }
        if (this.seq_levelup != null)
        {
            TweenExtensions.Kill(this.seq_levelup, false);
        }
        if (this.mExpCtrl != null)
        {
            this.mExpCtrl.DeInit();
        }
        this.mObjPool.Collect <MainUIGoldAddCtrl>();
        ReleaseModeManager mode = GameLogic.Release.Mode;

        mode.OnGotoNextRoom = (Action <RoomGenerateBase.Room>)Delegate.Remove(mode.OnGotoNextRoom, new Action <RoomGenerateBase.Room>(this.OnGotoNextRoom));
        this.mActionUpdateCtrl.DeInit();
        GameLogic.SetGameState(GameLogic.EGameState.Over);
        GameLogic.Release.Release();
        if (this.mLevelWaveCtrl != null)
        {
            this.mLevelWaveCtrl.Deinit();
            Object.Destroy(this.mLevelWaveCtrl.gameObject);
        }
    }
        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*/));
            }
        }
Beispiel #14
0
        protected override void DoStateTransition(SelectionState state, bool instant)
        {
            //IL_004a: Unknown result type (might be due to invalid IL or missing references)
            //IL_0060: Expected I4, but got Unknown
            //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
            //IL_00be: Unknown result type (might be due to invalid IL or missing references)
            //IL_00cf: Unknown result type (might be due to invalid IL or missing references)
            //IL_00f6: Unknown result type (might be due to invalid IL or missing references)
            //IL_0101: Unknown result type (might be due to invalid IL or missing references)
            //IL_011c: Unknown result type (might be due to invalid IL or missing references)
            //IL_013e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0159: Unknown result type (might be due to invalid IL or missing references)
            if (!this.get_gameObject().get_activeInHierarchy())
            {
                return;
            }
            if (m_style == null)
            {
                Log.Error("AnimatedTextButton " + this.get_name() + " doesn't have a style defined !", 27, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\UI\\ZaapGameMode\\GameModeButton.cs");
                return;
            }
            GameModeButtonState gameModeButtonState = m_style.disable;

            switch ((int)state)
            {
            case 0:
                gameModeButtonState = m_style.normal;
                break;

            case 1:
                gameModeButtonState = m_style.highlight;
                break;

            case 2:
                gameModeButtonState = m_style.pressed;
                break;

            case 3:
                gameModeButtonState = m_style.disable;
                break;
            }
            Sequence tweenSequence = m_tweenSequence;

            if (tweenSequence != null)
            {
                TweenExtensions.Kill(tweenSequence, false);
            }
            if (instant)
            {
                m_scaleDummy.set_localScale(Vector3.get_one() * gameModeButtonState.scale);
                m_image.set_color(gameModeButtonState.imageColor);
            }
            else
            {
                m_tweenSequence = DOTween.Sequence();
                TweenSettingsExtensions.Insert(m_tweenSequence, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_scaleDummy, Vector3.get_one() * gameModeButtonState.scale, m_style.transitionDuration), m_style.ease));
                TweenSettingsExtensions.Insert(m_tweenSequence, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOColor(m_image, gameModeButtonState.imageColor, m_style.transitionDuration), m_style.ease));
            }
        }
Beispiel #15
0
 private void DeInitSeq()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
         this.seq = null;
     }
 }
Beispiel #16
0
 private void KillSequence()
 {
     if (this.seq_purchase != null)
     {
         TweenExtensions.Kill(this.seq_purchase, false);
         this.seq_purchase = null;
     }
 }
Beispiel #17
0
 private void OnDestroy()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
         this.seq = null;
     }
 }
 private void OnDestroy()
 {
     if (m_tweener != null)
     {
         TweenExtensions.Kill(m_tweener, false);
         m_tweener = null;
     }
 }
Beispiel #19
0
 private void KillSequence()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
         this.seq = null;
     }
 }
 public void Stop()
 {
     if (this.mTweener != null)
     {
         TweenExtensions.Kill(this.mTweener, false);
         this.mTweener = null;
     }
 }
Beispiel #21
0
 private void KillSeq()
 {
     if (this.seq_name != null)
     {
         TweenExtensions.Kill(this.seq_name, false);
         this.seq_name = null;
     }
 }
 private void KillSequence()
 {
     if (this.seq_loading != null)
     {
         TweenExtensions.Kill(this.seq_loading, false);
         this.seq_loading = null;
     }
 }
Beispiel #23
0
 private void OnDisable()
 {
     if (m_zoomTween != null)
     {
         TweenExtensions.Kill(m_zoomTween, false);
         m_zoomTween = null;
     }
     Device.ScreenStateChanged -= OnScreenStateChange;
 }
		public unsafe void OnBeginDrag(PointerEventData eventData, CellRenderer cellRenderer)
		{
			//IL_006a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0075: Unknown result type (might be due to invalid IL or missing references)
			//IL_007a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0092: Unknown result type (might be due to invalid IL or missing references)
			//IL_0097: Unknown result type (might be due to invalid IL or missing references)
			//IL_00a8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00c2: 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)
			//IL_00ec: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f6: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f7: Unknown result type (might be due to invalid IL or missing references)
			//IL_00f8: Unknown result type (might be due to invalid IL or missing references)
			//IL_00fd: Unknown result type (might be due to invalid IL or missing references)
			//IL_0102: 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_0118: Unknown result type (might be due to invalid IL or missing references)
			//IL_011f: Unknown result type (might be due to invalid IL or missing references)
			//IL_0124: Unknown result type (might be due to invalid IL or missing references)
			//IL_0129: Unknown result type (might be due to invalid IL or missing references)
			//IL_012b: Unknown result type (might be due to invalid IL or missing references)
			//IL_012d: Unknown result type (might be due to invalid IL or missing references)
			//IL_0132: Unknown result type (might be due to invalid IL or missing references)
			//IL_013a: Unknown result type (might be due to invalid IL or missing references)
			//IL_0147: Unknown result type (might be due to invalid IL or missing references)
			Tween tweenDestroy = m_tweenDestroy;
			if (tweenDestroy != null)
			{
				TweenExtensions.Kill(tweenDestroy, false);
			}
			if (!(m_currentRenderer != null))
			{
				dragging = true;
				m_currentRenderer = cellRenderer;
				m_sourceClient = cellRenderer.dragNDropClient;
				m_copy = cellRenderer.Clone();
				m_copy.dragNDropClient = null;
				m_copyTransform = m_copy.rectTransform;
				Vector3 localPosition = m_copyTransform.get_localPosition();
				Rect rect = m_copyTransform.get_rect();
				Vector2 val = default(Vector2);
				val._002Ector(0.5f, 0.5f);
				Vector2 pivot = m_copyTransform.get_pivot();
				m_copyTransform.set_anchorMin(new Vector2(0.5f, 0.5f));
				m_copyTransform.set_anchorMax(new Vector2(0.5f, 0.5f));
				m_copyTransform.set_pivot(val);
				m_copyTransform.set_sizeDelta(new Vector2(rect.get_width(), rect.get_height()));
				Vector3 val2 = Vector2.op_Implicit(val - pivot);
				Vector3 val3 = Vector2.op_Implicit(new Vector2(rect.get_width() * ((IntPtr)(void*)val2).x, rect.get_height() * ((IntPtr)(void*)val2).y));
				Vector3 localPosition2 = localPosition + val3;
				m_copyTransform.set_localPosition(localPosition2);
				DragNDropListener.instance.OnBeginDrag(eventData.get_position(), eventData.get_pressEventCamera(), m_copyTransform);
				m_clients.TryGetValue(cellRenderer.GetValueType(), out m_candidates);
				this.OnDragBegin?.Invoke();
			}
		}
Beispiel #25
0
    private void ClearSeq()
    {
        Sequence sequence = null;

        if (mSequences.TryGetValue(base.m_mediatorName, out sequence) && (sequence != null))
        {
            TweenExtensions.Kill(sequence, false);
            sequence = null;
        }
    }
Beispiel #26
0
 public override void DeadCallBack()
 {
     base.m_AniCtrl.SendEvent("Dead", false);
     if (base.mDeadSeq != null)
     {
         TweenExtensions.Kill(base.mDeadSeq, false);
         base.mDeadSeq = null;
     }
     base.mDeadSeq = TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 1.5f), new TweenCallback(this, this.< DeadCallBack > m__3));
 }
 public void Deinit()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
         this.seq = null;
     }
     this.OnDeinit();
     GameLogic.EffectCache(base.gameObject);
 }
 public void DeInit()
 {
     CacheMap(this.currentMap);
     this.mSequencePool.Clear();
     if (this.s_absorb != null)
     {
         TweenExtensions.Kill(this.s_absorb, false);
     }
     this.OnDeInit();
 }
Beispiel #29
0
 public unsafe virtual void OnPointerExit(PointerEventData eventData)
 {
     //IL_0048: Unknown result type (might be due to invalid IL or missing references)
     if (m_overTween != null)
     {
         TweenExtensions.Kill(m_overTween, false);
     }
     m_overTween = TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 0f, m_data.elementsOverDuration), m_data.elementsOverEase);
     onPointerExit?.Invoke(this);
 }
Beispiel #30
0
 protected override void OnEnd()
 {
     base.m_Entity.mAniCtrlBase.UpdateAnimationSpeed("Skill", 0.5f);
     base.m_Entity.SetObstacleCollider(true);
     if (this.seq_play != null)
     {
         TweenExtensions.Kill(this.seq_play, false);
         this.seq_play = null;
     }
 }