public Tween Buld()
    {
        Tween tween = null;

        switch (this.mAnimationType)
        {
        case UINumberCounter.AnimationType.Random:
            tween = this.PlayWithRandom();
            TweenSettingsExtensions.SetId <Tween>(tween, this);
            return(tween);

        case UINumberCounter.AnimationType.RandomRange:
            tween = this.PlayWithRandomRange();
            TweenSettingsExtensions.SetId <Tween>(tween, this);
            return(tween);

        case UINumberCounter.AnimationType.Count:
            tween = this.PlayCount();
            TweenSettingsExtensions.SetId <Tween>(tween, this);
            return(tween);

        default:
            return(tween);
        }
    }
Example #2
0
    private Tween GenerateSplayAnimation(UITexture texture)
    {
        Tween tween = TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(0f, 1f, 3f, delegate(float percentage)
        {
            texture.width = (int)((float)this.mDefaultSplayTailWidth + 30f * percentage);
        }), this);
        Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(TweenSettingsExtensions.Append(TweenSettingsExtensions.Append(DOTween.Sequence(), TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(0f, 1f, 1.5f, delegate(float percentage)
        {
            texture.alpha = percentage;
        }), this)), TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(1f, 0f, 1.5f, delegate(float percentage)
        {
            texture.alpha = percentage;
        }), this)), this);
        Sequence sequence2 = DOTween.Sequence();

        TweenSettingsExtensions.Join(sequence2, tween);
        TweenSettingsExtensions.Join(sequence2, sequence);
        TweenSettingsExtensions.OnPlay <Sequence>(sequence2, delegate
        {
            texture.alpha = 0f;
            texture.width = this.mDefaultSplayTailWidth;
        });
        TweenSettingsExtensions.SetId <Sequence>(sequence2, this);
        return(sequence2);
    }
Example #3
0
        public void StartState()
        {
            bool flag = this.mMst_bgm_jukebox.Bgm_flag == 1;

            if (flag)
            {
                this.mButton_Positive.SetState(UIButtonColor.State.Normal, true);
                this.mButton_Positive.set_enabled(true);
                this.mButton_Positive.isEnabled = true;
            }
            else
            {
                this.mButton_Positive.SetState(UIButtonColor.State.Disabled, true);
                this.mButton_Positive.set_enabled(false);
                this.mButton_Positive.isEnabled = false;
            }
            bool flag2 = DOTween.IsTweening(this);

            if (flag2)
            {
                DOTween.Kill(this, false);
            }
            TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mPanelThis.alpha, 1f, 0.3f, delegate(float alpha)
            {
                this.mPanelThis.alpha = alpha;
            }), this);
            this.mUIJukeBoxMusicPlayingRollLabel.StartRoll();
            Tween tween  = this.GenerateTweenYouseiSwing();
            Tween tween2 = this.GenerateTweenYouseiMarch();
            Tween tween3 = this.GenerateTweenYouseiMove();
        }
 private void FadeOut()
 {
     TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mWidgetThis.alpha, 0f, 0.3f, delegate(float alpha)
     {
         this.mWidgetThis.alpha = alpha;
     }), this);
 }
Example #5
0
 public void OnTouchYousei()
 {
     if (!DOTween.IsTweening(this.mTexture_Yousei))
     {
         Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTransform_YouseiOffset, (float)Random.Range(55, 80), 0.5f, false), 9), 2, 1), this.mTexture_Yousei);
     }
 }
Example #6
0
    public void Focus()
    {
        DOTween.Kill(this, false);
        this.mSprite_Yousei.spriteName = "mini_08_a_01";
        this.mButton_Menu.SetState(UIButtonColor.State.Hover, true);
        Sequence sequence = DOTween.Sequence();
        Tween    tween    = ShortcutExtensions.DOLocalMoveY(this.mSprite_Yousei.get_transform(), 50f, 0.3f, false);
        Tween    tween2   = DOVirtual.Float(this.mSprite_Yousei.fillAmount, 1f, 0.3f, delegate(float percentage)
        {
            this.mSprite_Yousei.fillAmount = percentage;
        });
        Tween tween3 = DOVirtual.Float(0.2f, 1f, 0.3f, delegate(float percentage)
        {
            this.mTexture_Area.alpha = percentage;
        });

        this.mTexture_Area.get_transform().set_localScale(new Vector3(0.1f, 0.1f));
        Tween tween4 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Area.get_transform(), Vector3.get_one(), 0.1f), 18);

        TweenSettingsExtensions.Append(sequence, tween);
        TweenSettingsExtensions.Join(sequence, tween2);
        TweenSettingsExtensions.Join(sequence, tween3);
        TweenSettingsExtensions.Join(sequence, tween4);
        TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate
        {
            Tween tween5 = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(1f, 0.5f, 1.5f, delegate(float percentage)
            {
                this.mTexture_Area.alpha = percentage;
            }), this), 2147483647, 1), 21);
        });
        TweenSettingsExtensions.SetId <Sequence>(sequence, this);
    }
        private void PlaySlotParamUpProduction()
        {
            List <int> randomIndexMap        = UIDeckPracticeProductionMovieClip.Util.GenerateRandomIndexMap(this.mDeckModel);
            Sequence   randomPowerUpSequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            ShipModel[] shipModels = this.mDeckPracticeResultModel.Ships;
            TweenSettingsExtensions.SetId <Tween>(DOVirtual.DelayedCall(3.5f, delegate
            {
                Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
                int num           = 0;
                using (List <int> .Enumerator enumerator = randomIndexMap.GetEnumerator())
                {
                    while (enumerator.MoveNext())
                    {
                        int current = enumerator.get_Current();
                        Tween tween = TweenSettingsExtensions.SetId <Tween>(this.GeneratePowerUpNotifyTween(shipModels[current], (float)num++), this);
                        TweenSettingsExtensions.Append(randomPowerUpSequence, tween);
                    }
                }
                TweenSettingsExtensions.Join(sequence, randomPowerUpSequence);
                TweenSettingsExtensions.Join(sequence, TweenSettingsExtensions.SetId <Tween>(DOVirtual.DelayedCall(7f, delegate
                {
                    this.FinishedProduction();
                }, true), this));
            }, true), this);
        }
 private void ChangeFocusButton(UIButton button)
 {
     if (this.mButton_CurrentFocus != null)
     {
         bool flag = this.mButton_CurrentFocus.Equals(button);
         if (flag)
         {
             return;
         }
     }
     this.mButton_CurrentFocus = button;
     if (this.mButton_CurrentFocus != null)
     {
         bool flag2 = this.mButton_ShipAlbum.Equals(this.mButton_CurrentFocus);
         if (flag2)
         {
             SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
             TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTexture_Focus.get_transform(), -240f, 0.3f, false), this.mTexture_Focus);
         }
         else
         {
             bool flag3 = this.mButton_SlotItemAlbum.Equals(this.mButton_CurrentFocus);
             if (flag3)
             {
                 SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
                 TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTexture_Focus.get_transform(), 240f, 0.3f, false), this.mTexture_Focus);
             }
         }
     }
 }
Example #9
0
    public void StartState()
    {
        if (DOTween.IsTweening(this))
        {
            DOTween.Kill(this, false);
        }
        Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

        UIInteriorMenuButton[] array = this.mFocasableUIInteriorMenuButtons;
        for (int i = 0; i < array.Length; i++)
        {
            UIInteriorMenuButton uIInteriorMenuButton = array[i];
            uIInteriorMenuButton.get_transform().set_localScale(new Vector3(0f, 0f));
            Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(uIInteriorMenuButton.get_transform(), Vector3.get_one(), 0.25f), 21), this);
            TweenSettingsExtensions.SetDelay <Tween>(tween, 0.075f);
            TweenSettingsExtensions.Join(sequence, tween);
        }
        UIInteriorMenuButton[] array2 = this.mFocasableUIInteriorMenuButtons;
        for (int j = 0; j < array2.Length; j++)
        {
            UIInteriorMenuButton uIInteriorMenuButton2 = array2[j];
            uIInteriorMenuButton2.SetEnableButton(true);
        }
        this.ChangeFocus(this.mFocasableUIInteriorMenuButtons[0], false);
    }
        private Tween GenerateTweenSmoke(UITexture smokeTexture, float duration)
        {
            bool flag = DOTween.IsTweening(smokeTexture);

            if (flag)
            {
                DOTween.Kill(this, true);
            }
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            TweenSettingsExtensions.SetId <Sequence>(sequence, sequence);
            Sequence sequence2 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween     = DOVirtual.Float(0f, 1f, duration * 0.5f, delegate(float alpha)
            {
                smokeTexture.alpha = alpha;
            });
            Tween tween2 = DOVirtual.Float(1f, 0f, duration * 0.5f, delegate(float alpha)
            {
                smokeTexture.alpha = alpha;
            });

            TweenSettingsExtensions.Append(sequence2, tween);
            TweenSettingsExtensions.Append(sequence2, tween2);
            Tween tween3 = ShortcutExtensions.DOLocalMoveY(smokeTexture.get_transform(), smokeTexture.get_transform().get_localPosition().y + 10f, duration, false);

            TweenSettingsExtensions.Append(sequence, sequence2);
            TweenSettingsExtensions.Join(sequence, tween3);
            return(sequence);
        }
 public void SwitchToHome(Action onFinishedAnimation)
 {
     DOTween.Kill(this, false);
     TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(0f, 1f, 0.3f, delegate(float alpha)
     {
         this.mPanelThis.alpha = alpha;
     }), this);
     this.mUIFurnitureYousei.Initialize(UIFurnitureYousei.YouseiType.Room);
     this.mUIFurnitureYousei.StartWalk();
     this.mUIFurnitureYousei.get_transform().set_localPosition(Vector3.get_zero());
     this.mUIFurnitureYousei.get_transform().set_localScale(Vector3.get_zero());
     TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mUIFurnitureYousei.get_transform(), 12.5f, 0.2f, false), 30, 1), this);
     TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mUIFurnitureYousei.get_transform(), Vector3.get_one(), 0.6f), 15), delegate
     {
         TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOScale(this.mUIFurnitureYousei.get_transform(), new Vector3(2f, 2f, 2f), 1f), 0.5f), this);
         TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float(this.mUIFurnitureYousei.alpha, 0f, 0.6f, delegate(float alpha)
         {
             this.mUIFurnitureYousei.alpha = alpha;
         }), 0.5f), 18), delegate
         {
             TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(1f, 0f, 0.3f, delegate(float alpha)
             {
                 this.mPanelThis.alpha = alpha;
             }), this);
             if (onFinishedAnimation != null)
             {
                 onFinishedAnimation.Invoke();
             }
         }), this);
     }), this);
 }
Example #12
0
        private Tween GenerateTweenYouseiMarch()
        {
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Frame_0;
            };
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Frame_0;
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Frame_1;
            };
            TweenCallback tweenCallback4 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Frame_2;
            };
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback2);
            TweenSettingsExtensions.AppendInterval(sequence, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback4);
            TweenSettingsExtensions.AppendInterval(sequence, 0.1f);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence, 2147483647, 0);
            return(null);
        }
 public void Hide()
 {
     if (DOTween.IsTweening(UIInteriorFurnitureDetail.TweenAnimationType.ShowHide))
     {
         DOTween.Kill(UIInteriorFurnitureDetail.TweenAnimationType.ShowHide, false);
     }
     TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), 960f, 0.3f, false), UIInteriorFurnitureDetail.TweenAnimationType.ShowHide);
 }
        private Tween GenerateTweenMoveNormal()
        {
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x + (float)this.xMovePos, this.xMoveTime, false), this.xMoveEase), this));
            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x, this.mxMoveTime, false), 30), this));
            return(sequence);
        }
Example #15
0
        private void Animation()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                return;
            }
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            Sequence sequence2 = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence2, this);
            this.mTransform_Fuurin.set_localRotation(Quaternion.Euler(new Vector3(0f, 0f, -10f)));
            Tween tween  = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), Vector3.get_zero(), 0.6f, 0);
            Tween tween2 = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), new Vector3(0f, 0f, -5f), 0.6f, 0);
            Tween tween3 = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), Vector3.get_zero(), 0.3f, 0);

            TweenSettingsExtensions.Append(sequence2, tween);
            TweenSettingsExtensions.Append(sequence2, tween2);
            TweenSettingsExtensions.Append(sequence2, tween3);
            Sequence sequence3 = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence3, this);
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_2;
            };

            TweenSettingsExtensions.OnPlay <Sequence>(sequence3, tweenCallback);
            TweenSettingsExtensions.AppendInterval(sequence3, 0.1f);
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_0;
            };
            Tween tween4 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, -4f), 0.2f, 0);
            Tween tween5 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, 25f), 0.8f, 0);
            Tween tween6 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, -12.5f), 0.8f, 0);
            Tween tween7 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, 0f), 0.8f, 0);

            TweenSettingsExtensions.Append(sequence3, tween4);
            TweenSettingsExtensions.Append(sequence3, tween5);
            TweenSettingsExtensions.Append(sequence3, tween6);
            TweenSettingsExtensions.Append(sequence3, tween7);
            TweenSettingsExtensions.AppendCallback(sequence3, delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_1;
            });
            TweenSettingsExtensions.AppendInterval(sequence3, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence3, delegate
            {
                this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_0;
            });
            TweenSettingsExtensions.Append(sequence, sequence2);
            TweenSettingsExtensions.Join(sequence, sequence3);
            SoundUtils.PlaySE(this.mAudioClip_Fuurin);
        }
        private Tween GeneratePowerUpNotifyTween(ShipModel shipModel, float delay)
        {
            TweenCallback tweenCallback = delegate
            {
                this.OnPowerUpNotify(shipModel);
            };

            return(TweenSettingsExtensions.SetId <Tween>(DOVirtual.DelayedCall(delay, tweenCallback, true), this));
        }
Example #17
0
 private void ChangeValueEffect()
 {
     DOTween.Kill(this, false);
     TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOScale(this.chara_arm.get_transform(), new Vector3(1.1f, 1.1f), 0.1f), delegate
     {
         this.chara_arm.get_transform().set_localScale(Vector3.get_one());
     }), this), 1);
     SoundUtils.PlaySE(SEFIleInfos.CommonCursolMove);
 }
        private void Animation()
        {
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween    = this.GenerateFirstFireWorks();

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, this.GenerateCommonFireWorks());
            TweenSettingsExtensions.Append(sequence, this.GenerateCommonFireWorks());
            TweenSettingsExtensions.Append(sequence, this.GenerateCommonFireWorks());
        }
Example #19
0
    private Tween GenerateLoopTailAnimation()
    {
        Tween result = TweenSettingsExtensions.SetId <Tween>(TweenSettingsExtensions.SetLoops <Tween>(this.GenerateSplayAnimation(this.mTexture_SplayTail), 2147483647, 0), this);

        TweenSettingsExtensions.SetId <Tween>(DOVirtual.DelayedCall(1.5f, delegate
        {
            Tween tween = TweenSettingsExtensions.SetLoops <Tween>(this.GenerateSplayAnimation(this.mTexture_SplayTail_Delay), 2147483647, 0);
        }, true), this);
        return(result);
    }
        private Tween GenerateFirstFireWorks()
        {
            Sequence      sequence      = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Fire.mainTexture = this.mTexture2d_Red;
            };
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Fire.mainTexture = this.mTexture2d_Yellow;
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.mTexture_Fire.mainTexture = this.mTexture2d_Blue;
            };
            TweenCallback tweenCallback4 = delegate
            {
                this.mTexture_Fire.mainTexture = this.mTexture2d_White;
            };
            Tween tween = DOVirtual.Float(0f, 1f, 0.15f, delegate(float alpha)
            {
                this.mTexture_Fire.alpha = alpha;
            });
            Tween tween2 = DOVirtual.Float(1f, 0f, 0.8f, delegate(float alpha)
            {
                this.mTexture_Fire.alpha = alpha;
            });
            Tween tween3 = DOVirtual.Float(1f, 0f, 1.6f, delegate(float alpha)
            {
                this.mTexture_Fire.alpha = alpha;
            });
            TweenCallback tweenCallback5 = delegate
            {
                this.mTexture_Fire.alpha  = 0f;
                this.mAudioSource_Playing = SoundUtils.PlaySE(this.mAudioClip_Hanabi_0);
            };
            Tween tween4 = DOVirtual.Float(0f, 1f, 2f, delegate(float alpha)
            {
                this.mTexture_Fire.alpha = alpha;
            });

            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback5);
            TweenSettingsExtensions.Append(sequence, tween4);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback);
            TweenSettingsExtensions.AppendInterval(sequence, 0.15f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback2);
            TweenSettingsExtensions.AppendInterval(sequence, 0.15f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence, 0f);
            TweenSettingsExtensions.Append(sequence, tween2);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback4);
            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, tween3);
            return(sequence);
        }
        private Tween GenerateTweenMoveLevelUp()
        {
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x + (float)this.xMovePos, this.xMoveTime, false), this.xMoveEase), this));
            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x, this.mxMoveTime, false), 30), this));
            TweenSettingsExtensions.AppendInterval(sequence, this.xxMoveTimeDelay);
            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x + (float)this.xxMovePos, this.xxMoveTime, false), this));
            TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), base.get_transform().get_localPosition().x, this.mxxMoveTime, false), 30), this));
            TweenSettingsExtensions.Join(sequence, this.GenerateTweenLevelUp());
            return(sequence);
        }
        public void OnFinishedCollectAnimation()
        {
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween    = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTargetMenuButton.get_transform(), new Vector3(1.8f, 1.8f), 0.2f), this);
            Tween    tween2   = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTargetMenuButton.get_transform(), new Vector3(1.7f, 1.7f), 0.1f), this);

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, tween2);
            if (this.mOnFinishedCollectAnimationListener != null)
            {
                this.mOnFinishedCollectAnimationListener.Invoke();
            }
        }
 public void Hide()
 {
     this.Shown = false;
     if (this.mTweenShowHide != null)
     {
         TweenExtensions.Kill(this.mTweenShowHide, false);
         this.mTweenShowHide = null;
     }
     this.mTweenShowHide = TweenSettingsExtensions.SetId <Sequence>(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(DOTween.Sequence(), TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMove(base.get_transform(), this.mVector3_HidePosition, 0.2f, false), delegate
     {
         base.get_transform().SetActive(false);
     })), ShortcutExtensions.DOScale(this.mButton_GoStage.get_transform(), new Vector3(0.1f, 0.1f), 0.3f)), this);
 }
Example #24
0
        public void Hide()
        {
            Sequence sequence = DOTween.Sequence();
            Tween    tween    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Arsenal.get_transform(), this.newVector3(-7200f, 0f, 0f), 1f, false), 18);
            Tween    tween2   = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Revamp.get_transform(), this.newVector3(720f, 0f, 0f), 1f, false), 18);
            Tween    tween3   = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_ShipFrame, this.newVector3(0f, -1024f, 0f), 0.8f, false), 26);

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            TweenSettingsExtensions.SetId <Tween>(tween, this);
            TweenSettingsExtensions.SetId <Tween>(tween2, this);
            TweenSettingsExtensions.SetId <Tween>(tween3, this);
            TweenSettingsExtensions.Join(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(sequence, tween), tween2), tween3);
        }
        public void Play()
        {
            TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float(this.mWidgetThis.alpha, 1f, 0.5f, delegate(float alpha)
            {
                this.mWidgetThis.alpha = alpha;
            }), 0.3f), this);
            this.PlaySlotParamUpProduction();
            string text = UIDeckPracticeProductionMovieClip.FindPracticeMovieClipPath(this.mDeckPracticeResultModel.PracticeType);

            PSVitaVideoPlayer.Init(this.mRenderTexture_MovieClipRendrer);
            PSVitaVideoPlayer.Play(text, 1, 1);
            this.mIsCallPlay = true;
        }
Example #26
0
        public void StartState()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                DOTween.Kill(this, false);
            }
            TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mPanelThis.alpha, 1f, 0.3f, delegate(float alpha)
            {
                this.mPanelThis.alpha = alpha;
            }), this);
        }
Example #27
0
    private void ChangeOrientation(UserInterfaceAlbumShipViewer.Orientation changeToOrientation, Action onFinished)
    {
        this.mDisplayOrientation = changeToOrientation;
        Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), UserInterfaceAlbumShipViewer.AnimationType.RotateDisplay);
        Tween    tween    = null;

        if (changeToOrientation != UserInterfaceAlbumShipViewer.Orientation.Vertical)
        {
            if (changeToOrientation == UserInterfaceAlbumShipViewer.Orientation.Horizontal)
            {
                Screen.set_orientation(3);
                Tween tween2 = ShortcutExtensions.DOLocalMove(this.mCamera_Main.get_transform(), Vector3.get_zero(), 0.3f, false);
                Tween tween3 = DOVirtual.Float(this.mCamera_Main.get_orthographicSize(), 1f, 0.9f, delegate(float size)
                {
                    this.mCamera_Main.set_orthographicSize(size);
                });
                Tween tween4 = TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DORotate(this.mCamera_Main.get_transform(), new Vector3(0f, 0f, 0f), 0.9f, 0), delegate
                {
                    this.mCamera_Main.get_transform().set_rotation(Quaternion.Euler(0f, 0f, 0f));
                });
                TweenSettingsExtensions.Append(sequence, tween4);
                TweenSettingsExtensions.Join(sequence, tween);
                TweenSettingsExtensions.Join(sequence, tween2);
                TweenSettingsExtensions.Join(sequence, tween3);
            }
        }
        else
        {
            Screen.set_orientation(1);
            Tween tween2 = ShortcutExtensions.DOLocalMove(this.mCamera_Main.get_transform(), Vector3.get_zero(), 0.3f, false);
            Tween tween3 = DOVirtual.Float(this.mCamera_Main.get_orthographicSize(), (float)this.DISPLAY_HEIGHT / (float)this.DISPLAY_WIDTH, 0.9f, delegate(float size)
            {
                this.mCamera_Main.set_orthographicSize(size);
            });
            Tween tween4 = TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DORotate(this.mCamera_Main.get_transform(), new Vector3(0f, 0f, 90f), 0.9f, 0), delegate
            {
                this.mCamera_Main.get_transform().set_rotation(Quaternion.Euler(0f, 0f, 90f));
            });
            TweenSettingsExtensions.Append(sequence, tween3);
            TweenSettingsExtensions.Join(sequence, tween);
            TweenSettingsExtensions.Join(sequence, tween2);
            TweenSettingsExtensions.Join(sequence, tween4);
        }
        TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate
        {
            if (onFinished != null)
            {
                onFinished.Invoke();
            }
        });
    }
Example #28
0
        public void Hide()
        {
            this.mOnClickEventSender_Back.SetClickable(false);
            this.mOnClickEventSender_Next.SetClickable(false);
            if (DOTween.IsTweening(UIInteriorFurnitureChangeScrollListNew.TweenAnimationType.ShowHide))
            {
                DOTween.Kill(UIInteriorFurnitureChangeScrollListNew.TweenAnimationType.ShowHide, false);
            }
            Sequence sequence = DOTween.Sequence();
            Tween    tween    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(base.get_transform(), -960f, 0.6f, false), 21);

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.SetId <Sequence>(sequence, UIInteriorFurnitureChangeScrollListNew.TweenAnimationType.ShowHide);
        }
Example #29
0
 public void Click()
 {
     this.mSprite_Yousei.spriteName = "mini_08_a_03";
     TweenSettingsExtensions.OnComplete <Tween>(TweenSettingsExtensions.SetId <Tween>(DOVirtual.DelayedCall(0.1f, delegate
     {
         this.mSprite_Yousei.spriteName = "mini_08_a_04";
     }, true), this), delegate
     {
         if (this.mOnClickListener != null)
         {
             this.mOnClickListener.Invoke();
         }
     });
 }
        private void Animation()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                return;
            }
            Sequence      sequence      = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            TweenCallback tweenCallback = delegate
            {
                this.OpenGate();
                this.mPegion.get_gameObject().SetActive(true);
                this.mPegion.get_transform().set_localPosition(this.mVector2_ClosePegionLocalPosition);
                SoundUtils.PlaySE(this.mAudioClip_Pegion);
                this.OffPegion();
            };
            Tween         tween          = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMove(this.mPegion.get_transform(), this.mVector2_OpenPegionLocalPosition, 0.3f, false), this);
            Sequence      sequence2      = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            TweenCallback tweenCallback2 = delegate
            {
                this.OnPegion();
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.OffPegion();
            };

            TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback2);
            TweenSettingsExtensions.AppendInterval(sequence2, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence2, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback2);
            TweenSettingsExtensions.AppendInterval(sequence2, 0.1f);
            TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence2, 0.1f);
            Tween         tween2         = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMove(this.mPegion.get_transform(), this.mVector2_ClosePegionLocalPosition, 0.15f, false), this);
            TweenCallback tweenCallback4 = delegate
            {
                this.CloseGate();
                this.mPegion.get_gameObject().SetActive(false);
            };

            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback);
            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, sequence2);
            TweenSettingsExtensions.Append(sequence, tween2);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback4);
        }