Exemplo n.º 1
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;
        }
Exemplo n.º 2
0
        public override IEnumerator CloseTo(SlidingSide side)
        {
            Sequence buttonSequence = m_buttonSlidingAnim.PlayAnim(open: false, side, side == SlidingSide.Right);
            Sequence elemSequence   = m_godList.TransitionAnim(open: false, side);

            m_closeDirector.set_time(0.0);
            m_closeDirector.Play();
            while (true)
            {
                if (!TweenExtensions.IsActive(elemSequence) && !TweenExtensions.IsActive(buttonSequence))
                {
                    PlayableGraph playableGraph = m_closeDirector.get_playableGraph();
                    if (!playableGraph.IsValid())
                    {
                        break;
                    }
                    playableGraph = m_closeDirector.get_playableGraph();
                    if (playableGraph.IsDone())
                    {
                        break;
                    }
                }
                yield return(null);
            }
        }
Exemplo n.º 3
0
        public unsafe void PlayAnimation(int ribbonMessageID, Action <FightInfoMessageRibbon> callback)
        {
            //IL_005c: Unknown result type (might be due to invalid IL or missing references)
            //IL_0080: 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_0113: Unknown result type (might be due to invalid IL or missing references)
            //IL_016d: Unknown result type (might be due to invalid IL or missing references)
            //IL_0177: Expected O, but got Unknown
            this.get_gameObject().SetActive(true);
            m_playerOriginalTextField.SetText(ribbonMessageID, GetProvider());
            m_fieldView.set_alpha(0f);
            m_visualRoot.get_transform().set_localPosition(new Vector3(0f, -100f, 0f));
            m_visualRoot.get_transform().set_localScale(new Vector3(3f, 3f, 3f));
            Sequence obj = DOTween.Sequence();

            TweenSettingsExtensions.Insert(obj, 0f, DOTween.To(new DOGetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 1f, 0.5f));
            TweenSettingsExtensions.Insert(obj, 0f, DOTween.To(new DOGetter <Vector3>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <Vector3>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), Vector3.get_zero(), 0.5f));
            TweenSettingsExtensions.Insert(obj, 0f, DOTween.To(new DOGetter <Vector3>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <Vector3>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), Vector3.get_one(), 0.3f));
            TweenSettingsExtensions.Insert(obj, 2f, TweenSettingsExtensions.SetDelay <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, 0.3f), 2f));
            _003C_003Ec__DisplayClass9_0 _003C_003Ec__DisplayClass9_;

            TweenSettingsExtensions.OnComplete <Sequence>(obj, new TweenCallback((object)_003C_003Ec__DisplayClass9_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
            TweenExtensions.Play <Sequence>(obj);
            this.get_transform().SetAsLastSibling();
        }
Exemplo n.º 4
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);
        }
Exemplo n.º 5
0
 protected override void OnDeInit()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
     }
 }
Exemplo n.º 6
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;
        }
Exemplo n.º 7
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;
     }
 }
Exemplo n.º 8
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));
     }
 }
Exemplo n.º 9
0
 public void SetAnimated(bool value)
 {
     //IL_005f: Unknown result type (might be due to invalid IL or missing references)
     if (m_animated == value)
     {
         return;
     }
     if (value)
     {
         s_animatedPointers.Add(this);
         if (!TweenExtensions.IsPlaying(s_animationTween))
         {
             TweenExtensions.Restart(s_animationTween, true, -1f);
         }
     }
     else
     {
         s_animatedPointers.Remove(this);
         if (s_animatedPointers.Count == 0)
         {
             TweenExtensions.Pause <Tweener>(s_animationTween);
         }
         m_spriteRenderer.set_color(Color.get_white());
     }
     m_animated = value;
 }
Exemplo n.º 10
0
        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();
            }
        }
Exemplo n.º 11
0
 protected override void OnDeinit()
 {
     if (this.seqcloud != null)
     {
         TweenExtensions.Kill(this.seqcloud, false);
     }
 }
Exemplo n.º 12
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*/));
            }
        }
Exemplo n.º 13
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;
        }
Exemplo n.º 14
0
        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();
        }
        public override IEnumerator OpenFrom(SlidingSide side)
        {
            for (int i = 0; i < m_slidingAnim.elements.Count; i++)
            {
                m_slidingAnim.elements[i].get_transform().set_localPosition(Vector3.get_zero());
            }
            Sequence slidingSequence = m_slidingAnim.PlayAnim(open: true, side, side == SlidingSide.Left);

            m_openDirector.set_time(0.0);
            m_openDirector.Play();
            while (true)
            {
                if (!TweenExtensions.IsActive(slidingSequence))
                {
                    PlayableGraph playableGraph = m_openDirector.get_playableGraph();
                    if (!playableGraph.IsValid())
                    {
                        break;
                    }
                    playableGraph = m_openDirector.get_playableGraph();
                    if (playableGraph.IsDone())
                    {
                        break;
                    }
                }
                yield return(null);
            }
        }
        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);
        }
Exemplo n.º 17
0
    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);
        }
    }
Exemplo n.º 18
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));
            }
        }
 private void OnDestroy()
 {
     if (m_tweener != null)
     {
         TweenExtensions.Kill(m_tweener, false);
         m_tweener = null;
     }
 }
Exemplo n.º 20
0
 private void KillSeq()
 {
     if (this.seq_name != null)
     {
         TweenExtensions.Kill(this.seq_name, false);
         this.seq_name = null;
     }
 }
Exemplo n.º 21
0
 private void KillSequence()
 {
     if (this.seq_loading != null)
     {
         TweenExtensions.Kill(this.seq_loading, false);
         this.seq_loading = null;
     }
 }
Exemplo n.º 22
0
 private void OnDestroy()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
         this.seq = null;
     }
 }
Exemplo n.º 23
0
 private void KillSequence()
 {
     if (this.seq_purchase != null)
     {
         TweenExtensions.Kill(this.seq_purchase, false);
         this.seq_purchase = null;
     }
 }
 public void Stop()
 {
     if (this.mTweener != null)
     {
         TweenExtensions.Kill(this.mTweener, false);
         this.mTweener = null;
     }
 }
    public void PlayHide()
    {
        Tween tween = this.GenerateTweenChart(0, 0, 0, 0, 0);

        this.mat.set_color(new Color(0f, 0f, 0f, 0f));
        this.outMat.set_color(new Color(0f, 0f, 0f, 0f));
        TweenExtensions.Play <Tween>(tween);
    }
    public void Play()
    {
        this.mat.set_color(new Color(0f, 0.75f, 0.75f, 0.4f));
        this.outMat.set_color(new Color(1f, 1f, 1f, 0.4f));
        Tween tween = this.GenerateTweenChart(this.mKaryoku, this.mRaisou, this.mTaiku, this.mKaihi, this.mTaikyu);

        TweenExtensions.Play <Tween>(tween);
    }
Exemplo n.º 27
0
 private void OnMoveView(View view, Vector3 moveTo)
 {
     this.mIsAnimationNow = true;
     TweenExtensions.PlayForward(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(view.get_transform(), moveTo, this.ANIMATION_TIME_MOVE, false), this.ANIMATION_EASE_MOVE), delegate
     {
         this.mIsAnimationNow = false;
     }));
 }
Exemplo n.º 28
0
 private void KillSequence()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
         this.seq = null;
     }
 }
Exemplo n.º 29
0
 private void DeInitSeq()
 {
     if (this.seq != null)
     {
         TweenExtensions.Kill(this.seq, false);
         this.seq = null;
     }
 }
Exemplo n.º 30
0
        public IEnumerator PlayEnterAnimation()
        {
            SafeArea.set_localPosition(new Vector3(0f, 1080f, 0f));
            Sequence val = DOTween.Sequence();

            TweenSettingsExtensions.Append(val, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(SafeArea, 0f, 0.25f, false), 30));
            TweenExtensions.Play <Sequence>(val);
            yield return(TweenExtensions.WaitForKill(val));
        }