Exemple #1
0
 private void InitTween(FTweenTool t)
 {
     t.SetMode(mMode);
     t.TweenNode.mOnStart += (ti) =>
     {
         if (ti != 0)
         {
             t.SetPause(true);
             _Play();
         }
     };
     t.TweenNode.mOnComplete += (ti) =>
     {
         if (mMode != FTweenMode.TM_YoYo)
         {
             if (t.TweenNode.mTurnDelayTime > 0.005)
             {
                 if (ti % 2 == 1)
                 {
                     return;
                 }
             }
             else if (t.TweenNode.mTurnDelayTime > 0.001)
             {
                 if (ti % 2 != 1)
                 {
                     return;
                 }
             }
         }
         t.SetPause(true);
         _Play();
     };
     t.SetPause(true);
 }
Exemple #2
0
 public FTweenMix Append(FTweenTool tween)
 {
     InitTween(tween);
     mTweens.Add(tween);
     if (mIsOver)
     {
         mIndex  = mTweens.Count - 2;
         mIsOver = false;
         _Play();
     }
     return(this);
 }
Exemple #3
0
 public FTweenEvent()
 {
     mControl = new FTweenTool(this);
 }