Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
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);
     }
 }
Ejemplo n.º 4
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);
    }
Ejemplo n.º 5
0
 private void update_progress()
 {
     if (((this.Progress_Me != null) && (this.Progress_Other != null)) && (this.Progress_Light != null))
     {
         if ((this.score_me == 0) && (this.score_other == 0))
         {
             this.Progress_Me.sizeDelta           = new Vector2(this.allwidth / 2f, this.height);
             this.Progress_Other.sizeDelta        = new Vector2(this.allwidth / 2f, this.height);
             this.Progress_Light.anchoredPosition = new Vector2(0f, 0f);
         }
         else if (this.score_other == 0)
         {
             this.Progress_Me.sizeDelta           = new Vector2(this.allwidth, this.height);
             this.Progress_Other.sizeDelta        = new Vector2(0f, this.height);
             this.Progress_Light.anchoredPosition = new Vector2(this.allwidth / 2f, 0f);
         }
         else
         {
             float num  = this.score_me + this.score_other;
             float num2 = ((float)this.score_me) / num;
             float x    = num2 * this.allwidth;
             this.Progress_Me.sizeDelta           = new Vector2(x, this.height);
             this.Progress_Other.sizeDelta        = new Vector2(this.allwidth - x, this.height);
             this.Progress_Light.anchoredPosition = new Vector2(x - (this.allwidth / 2f), 0f);
             Transform transform = null;
             if (this.score_other > this.score_me)
             {
                 transform = this.Text_Other_Name.transform;
             }
             else if (this.score_me > this.score_other)
             {
                 transform = this.Text_Me_Name.transform;
             }
             if (transform != null)
             {
                 if (transform != this.t_name)
                 {
                     this.KillSeq();
                     if (this.t_name != null)
                     {
                         this.t_name.localScale    = Vector3.one;
                         this.t_name.localRotation = Quaternion.identity;
                     }
                     this.t_name            = transform;
                     this.t_name.localScale = Vector3.one * 1.35f;
                     this.seq_name          = DOTween.Sequence();
                     TweenSettingsExtensions.Append(this.seq_name, ShortcutExtensions.DOScale(this.t_name, Vector3.one * 1.5f, 0.1f));
                     TweenSettingsExtensions.Join(this.seq_name, ShortcutExtensions.DOShakeRotation(this.t_name, 0.1f, 5f, 10, 90f, true));
                     TweenSettingsExtensions.SetEase <Sequence>(this.seq_name, 6);
                     TweenSettingsExtensions.SetLoops <Sequence>(this.seq_name, -1, 1);
                     TweenSettingsExtensions.SetUpdate <Sequence>(this.seq_name, true);
                 }
             }
             else
             {
                 this.KillSeq();
             }
         }
     }
 }
 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);
 }
Ejemplo n.º 7
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);
    }
 public void Play()
 {
     if (this.mTweener != null)
     {
         TweenExtensions.Kill(this.mTweener, false);
         this.mTweener = null;
     }
     this.mTweener = TweenSettingsExtensions.SetLoops <Tweener>(DOVirtual.Float(this.mTexture_Light.alpha, 0.3f, 0.8f, delegate(float alpha)
     {
         this.mTexture_Light.alpha = alpha;
     }), 2147483647, 1);
 }
 public void SetTime(int time, Action callback)
 {
     this.mTime        = time;
     this.mCallback    = callback;
     this.mCurrentTime = this.mTime;
     this.KillSequence();
     this.seq = DOTween.Sequence();
     TweenSettingsExtensions.AppendInterval(this.seq, 1f);
     TweenSettingsExtensions.SetLoops <Sequence>(this.seq, this.mTime);
     TweenSettingsExtensions.OnStepComplete <Sequence>(this.seq, new TweenCallback(this, this.OnUpdateSecond));
     TweenSettingsExtensions.SetUpdate <Sequence>(this.seq, true);
     this.SetTime(this.mCurrentTime);
 }
Ejemplo n.º 10
0
    protected override void OnStart()
    {
        this.seq = DOTween.Sequence();
        TweenSettingsExtensions.AppendInterval(this.seq, 1f);
        TweenSettingsExtensions.SetLoops <Sequence>(this.seq, this.alltime);
        TweenSettingsExtensions.OnStepComplete <Sequence>(this.seq, new TweenCallback(this, this.OnUpdateSecond));
        Transform transform = base.mParent.Find("Text_Value");

        if (transform == null)
        {
            SdkManager.Bugly_Report("ChallengeCondition102", "Text_Value is not found.");
        }
        this.Text_Value = transform.GetComponent <Text>();
        this.UpdateText();
    }
Ejemplo n.º 11
0
 private void OnEnable()
 {
     //IL_004e: 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)
     if (!(m_datas == null))
     {
         m_loopSequence = DOTween.Sequence();
         TweenSettingsExtensions.SetLoops <Sequence>(m_loopSequence, -1);
         for (int i = 0; i < m_points.Length; i++)
         {
             CanvasGroup val = m_points[i];
             TweenSettingsExtensions.Insert(m_loopSequence, (float)i * m_datas.delayBetweenPoints, ShortcutExtensions.DOPunchScale(val.get_transform(), Vector3.get_one() * m_datas.scale, m_datas.duration, m_datas.vibrato, m_datas.elasticity));
         }
         TweenSettingsExtensions.AppendInterval(m_loopSequence, m_datas.delayBetweenLoops);
     }
 }
        public virtual Tween GenerateTweenFocus()
        {
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween    = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Front.get_transform(), this.mVector3_FrontCoverOutScale, 0.15f), 18), this);
            Tween    tween2   = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Front.get_transform(), this.mVector3_DefaultFrontScale, 0.15f), 1), this);

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, tween2);
            Sequence sequence2 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween3    = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Back.get_transform(), this.mBackMinimum, 0.1f), this);
            Tween    tween4    = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Front.get_transform(), this.mFrontMinimum, 0.1f), this);

            TweenSettingsExtensions.Append(sequence2, tween3);
            TweenSettingsExtensions.Join(sequence2, tween4);
            Sequence sequence3 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween5    = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Back.get_transform(), this.mBackMaximum, 1f), this);
            Tween    tween6    = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Front.get_transform(), this.mFrontMaximum, 1f), this);

            TweenSettingsExtensions.Append(sequence3, tween5);
            TweenSettingsExtensions.Join(sequence3, tween6);
            TweenSettingsExtensions.SetEase <Sequence>(sequence3, 4);
            Sequence sequence4 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween    tween7    = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Back.get_transform(), this.mBackMinimum, 2f), this);
            Tween    tween8    = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Front.get_transform(), this.mFrontMinimum, 2f), this);

            TweenSettingsExtensions.Append(sequence4, tween7);
            TweenSettingsExtensions.Join(sequence4, tween8);
            TweenSettingsExtensions.SetEase <Sequence>(sequence4, 4);
            Sequence sequence5 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            TweenSettingsExtensions.Append(sequence5, sequence3);
            TweenSettingsExtensions.Append(sequence5, sequence4);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence5, 2147483647);
            Sequence sequence6 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);
            Tween tween9 = TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mTexture_Text.alpha, 1f, 0.15f, delegate(float alpha)
            {
                this.mTexture_Text.alpha = alpha;
            }), this);

            TweenSettingsExtensions.Append(sequence6, sequence2);
            TweenSettingsExtensions.Join(sequence6, tween9);
            TweenSettingsExtensions.Append(sequence6, sequence);
            TweenSettingsExtensions.Append(sequence6, sequence5);
            return(sequence6);
        }
Ejemplo n.º 13
0
 private void Update()
 {
     if (this.seq == null)
     {
         this.delaytime -= Time.deltaTime;
         if (this.delaytime <= 0f)
         {
             this.seq = DOTween.Sequence();
             float num = 1f;
             TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(base.transform, 1f, num), 1));
             TweenSettingsExtensions.Join(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DORotate(base.transform, new Vector3(0f, 0f, 180f), num, 0), 1));
             TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(base.transform, 0f, num), 1));
             TweenSettingsExtensions.Join(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DORotate(base.transform, new Vector3(0f, 0f, 360f), num, 0), 1));
             TweenSettingsExtensions.AppendInterval(this.seq, 0.33f);
             TweenSettingsExtensions.SetLoops <Sequence>(this.seq, -1);
         }
     }
 }
Ejemplo n.º 14
0
    public EffectManager()
    {
        Dictionary <string, int> dictionary = new Dictionary <string, int> {
            {
                "Game/Food/3001",
                20
            }
        };

        this.mEffectCounts = dictionary;
        this.perCount      = 0x3e7;
        this.stCount       = 5;
        this.mEffectList   = new Dictionary <string, Queue <GameObject> >();
        this.mCloneList    = new Dictionary <string, GameObject>();
        this.mTimeList     = new Dictionary <string, float>();
        this.KillSequence();
        this.seq_update = TweenSettingsExtensions.SetLoops <Sequence>(TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 1.4f), new TweenCallback(this, this.OnUpdate)), -1);
    }
Ejemplo n.º 15
0
    public BulletManager(int type)
    {
        Dictionary <int, int> dictionary = new Dictionary <int, int> {
            {
                0x13e4,
                20
            }
        };

        this.mBulletCounts = dictionary;
        this.stCount       = 5;
        this.mType         = type;
        if (this.mType == 1)
        {
            this.stCount = 15;
        }
        this.KillSequence();
        this.seq_update = TweenSettingsExtensions.SetLoops <Sequence>(TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 1.3f), new TweenCallback(this, this.OnUpdate)), -1);
    }
        private void Animation()
        {
            bool flag = DOTween.IsTweening(this);

            if (flag)
            {
                DOTween.Kill(this, false);
            }
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            Tween tween  = this.GenerateTweenSmoke(this.mTexture_Smoke_0, 1f);
            Tween tween2 = this.GenerateTweenSmoke(this.mTexture_Smoke_1, 1f);
            Tween tween3 = this.GenerateTweenSmoke(this.mTexture_Smoke_2, 1f);

            TweenSettingsExtensions.Append(sequence, tween3);
            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, tween2);
            TweenSettingsExtensions.AppendInterval(sequence, 1f);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence, 2147483647, 0);
        }
Ejemplo n.º 17
0
        private Tween GenerateTweenYouseiMove()
        {
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            TweenCallback tweenCallback = delegate
            {
                this.mTransform_YouseiOffset.localPositionX(250f);
                this.mTransform_YouseiOffset.set_localRotation(Quaternion.Euler(Vector3.get_zero()));
            };
            Tween tween  = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTransform_YouseiOffset, -380f, 5f, false), 1);
            Tween tween2 = ShortcutExtensions.DOLocalRotate(this.mTransform_YouseiOffset, new Vector3(0f, 180f, 0f), 1f, 0);
            Tween tween3 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTransform_YouseiOffset, 250f, 5f, false), 1);
            Tween tween4 = ShortcutExtensions.DOLocalRotate(this.mTransform_YouseiOffset, new Vector3(0f, 0f, 0f), 1f, 0);

            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback);
            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.Append(sequence, tween2);
            TweenSettingsExtensions.Append(sequence, tween3);
            TweenSettingsExtensions.Append(sequence, tween4);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence, 2147483647, 0);
            return(sequence);
        }
Ejemplo n.º 18
0
        public void StartRoll()
        {
            bool flag = DOTween.IsTweening(this);

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

            this.mLabel_Title.get_transform().localPositionX(this.mRight + (float)(this.mLabel_Title.width / 2));
            Tween tween  = ShortcutExtensions.DOLocalMoveX(this.mLabel_Title.get_transform(), (float)(this.mLabel_Title.width / 2), 3f, false);
            Tween tween2 = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mLabel_Title.get_transform(), this.mLeft, 3f, false), delegate
            {
                this.mLabel_Title.get_transform().localPositionX(this.mRight + (float)(this.mLabel_Title.width / 2));
            }), 1);

            TweenSettingsExtensions.Append(sequence, tween);
            TweenSettingsExtensions.AppendInterval(sequence, 1.5f);
            TweenSettingsExtensions.Append(sequence, tween2);
            TweenSettingsExtensions.AppendInterval(sequence, 0.5f);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence, 2147483647, 0);
        }
Ejemplo n.º 19
0
        private Tween GenerateTweenYouseiSwing()
        {
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Yousei.get_transform().set_localRotation(Quaternion.Euler(new Vector3(0f, 0f, 0f)));
            };
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Yousei.get_transform().set_localRotation(Quaternion.Euler(Vector3.get_zero()));
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.mTexture_Yousei.get_transform().set_localRotation(Quaternion.Euler(new Vector3(0f, 0f, 6f)));
            };
            Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this);

            TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback);
            TweenSettingsExtensions.AppendInterval(sequence, 1f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence, 1f);
            TweenSettingsExtensions.AppendCallback(sequence, tweenCallback2);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence, 2147483647, 0);
            return(sequence);
        }
 private void Start()
 {
     if (this.mLoop < 0)
     {
         this.mLoop = -2147483648;
     }
     this.mTween = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions.DOLocalMove(base.get_transform(), this.mVector3_To, this.mDuration, false), this.mLoop, this.mLoopType_Type), this.mDelay), this.mEase);
 }
Ejemplo n.º 21
0
 private Tween GenerateSplayHeadAnimation()
 {
     return(TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions.DOScaleY(this.mTexture_SplayHead.get_transform(), Random.RandomRange(0.5f, 0.8f), 0.25f), 2147483647), this));
 }
Ejemplo n.º 22
0
 private void Awake()
 {
     TweenSettingsExtensions.SetUpdate <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions46.DOFade(this.Image_NoNet, 0f, 1f), -1, 1), true);
 }
Ejemplo n.º 23
0
 public static T SetLoops <T>(this T t, int loops) where T : Tween
 {
     return(TweenSettingsExtensions.SetLoops(t, loops));
 }
Ejemplo n.º 24
0
 public void Init()
 {
     ServicePointManager.DefaultConnectionLimit = 50;
     TweenSettingsExtensions.SetLoops <Sequence>(TweenSettingsExtensions.AppendCallback(TweenSettingsExtensions.AppendInterval(DOTween.Sequence(), 0.2f), new TweenCallback(this, this.OnUpdate)), -1);
 }
Ejemplo n.º 25
0
        public void PlayAnimation()
        {
            if (DOTween.IsTweening(this))
            {
                DOTween.Kill(this, false);
            }
            Sequence sequence = DOTween.Sequence();

            TweenSettingsExtensions.SetId <Sequence>(sequence, this);
            this.mTexture_Yousei.alpha = 1E-06f;
            this.mTexture_Yousei.get_transform().localPositionY(-90f);
            this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Off;
            this.mTexture_Deck.alpha         = 1E-06f;
            this.mTexture_Deck.get_transform().localPositionY(-10f);
            Sequence sequence2 = DOTween.Sequence();
            float    num       = 1f;
            Tween    tween     = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTexture_Yousei.get_transform(), -50f, num, false), 27);
            Tween    tween2    = DOVirtual.Float(0f, 1f, num, delegate(float alpha)
            {
                this.mTexture_Yousei.alpha = alpha;
            });

            TweenSettingsExtensions.Append(sequence2, tween);
            TweenSettingsExtensions.Join(sequence2, tween2);
            TweenSettingsExtensions.Append(sequence, sequence2);
            Sequence      sequence3     = DOTween.Sequence();
            TweenCallback tweenCallback = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_On;
            };
            Sequence sequence4 = DOTween.Sequence();
            Tween    tween3    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTexture_Deck.get_transform(), 20f, num, false), 27);
            Tween    tween4    = DOVirtual.Float(0f, 1f, num, delegate(float alpha)
            {
                this.mTexture_Deck.alpha = alpha;
            });

            TweenSettingsExtensions.OnPlay <Sequence>(sequence4, tweenCallback);
            TweenSettingsExtensions.Append(sequence4, tween3);
            TweenSettingsExtensions.Join(sequence4, tween4);
            TweenSettingsExtensions.Append(sequence, sequence4);
            Sequence      sequence5      = DOTween.Sequence();
            Sequence      sequence6      = DOTween.Sequence();
            TweenCallback tweenCallback2 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_On;
            };
            TweenCallback tweenCallback3 = delegate
            {
                this.mTexture_Yousei.mainTexture = this.mTexture2d_Yousei_Off;
            };

            TweenSettingsExtensions.AppendInterval(sequence6, 0.3f);
            TweenSettingsExtensions.AppendCallback(sequence6, tweenCallback3);
            TweenSettingsExtensions.AppendInterval(sequence6, 0.3f);
            TweenSettingsExtensions.AppendCallback(sequence6, tweenCallback2);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence6, 2147483647);
            TweenSettingsExtensions.Append(sequence5, sequence6);
            Sequence sequence7 = DOTween.Sequence();
            Tween    tween5    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTexture_Deck.get_transform(), 24f, 1.5f, false), 6);
            Tween    tween6    = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.mTexture_Deck.get_transform(), 20f, 1.5f, false), 6);

            TweenSettingsExtensions.Append(sequence7, tween5);
            TweenSettingsExtensions.Append(sequence7, tween6);
            TweenSettingsExtensions.SetLoops <Sequence>(sequence7, 2147483647);
            TweenSettingsExtensions.Join(sequence5, sequence7);
            TweenSettingsExtensions.Append(sequence, sequence5);
        }
Ejemplo n.º 26
0
 private void Play()
 {
     ShortcutExtensions.DOKill(this.Text_Content, false);
     this.Text_Content.set_color(new Color(this.Text_Content.get_color().r, this.Text_Content.get_color().g, this.Text_Content.get_color().b, 0f));
     TweenSettingsExtensions.SetUpdate <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions46.DOFade(this.Text_Content, 1f, 1f), -1, 1), 7), true);
     this.Text_Content.text = GameLogic.Hold.Language.GetLanguageByTID("TapToClose", Array.Empty <object>());
 }
Ejemplo n.º 27
0
        private void UpdateTimerState(int secondsRemaining)
        {
            //IL_00b4: 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_011e: Unknown result type (might be due to invalid IL or missing references)
            //IL_0140: Unknown result type (might be due to invalid IL or missing references)
            if (m_timerTextAnimator == null)
            {
                return;
            }
            TimerState timerState = TimerState.Normal;

            if (secondsRemaining < 0 || secondsRemaining > 15)
            {
                timerState = TimerState.Normal;
            }
            else if (secondsRemaining > 5 && secondsRemaining <= 15)
            {
                timerState = TimerState.Warning;
            }
            else if (secondsRemaining <= 5 && secondsRemaining >= 0)
            {
                timerState = TimerState.Alert;
            }
            if (timerState != m_currentTimerState)
            {
                Tween timerColorTween = m_timerColorTween;
                if (timerColorTween != null)
                {
                    TweenExtensions.Kill(timerColorTween, false);
                }
                m_timerColorTween   = null;
                m_currentTimerState = timerState;
                switch (timerState)
                {
                case TimerState.Normal:
                    m_timerTextAnimator.SetTrigger(s_normalHash);
                    break;

                case TimerState.Warning:
                {
                    m_timerTextAnimator.SetTrigger(s_warningHash);
                    Sequence val = DOTween.Sequence();
                    TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOColor(m_timeFilling, m_warningColor.Evaluate(1f), 0.5f));
                    TweenSettingsExtensions.Insert(val, 0f, m_textTurnTime.DOColor(m_warningColor.Evaluate(1f), 0.5f));
                    m_timerColorTween = val;
                    break;
                }

                case TimerState.Alert:
                    m_timerTextAnimator.SetTrigger(s_alertHash);
                    m_textTurnTime.DOColor(m_warningColor.Evaluate(0f), 0.5f);
                    m_timerColorTween = TweenSettingsExtensions.SetLoops <Tweener>(DOTweenModuleUI.DOColor(m_timeFilling, m_warningColor.Evaluate(0f), 0.5f), -1, 1);
                    m_onEndOfTurnBeginAlert.Invoke();
                    break;

                default:
                    throw new ArgumentOutOfRangeException();
                }
            }
        }