예제 #1
0
 public void RemoveT(FTweener tween)
 {
     if (!tweens.Contains(tween))
     {
         return;
     }
     toRemoveTweens.Add(tween);
 }
예제 #2
0
 public void AddT(FTweener tween)
 {
     if (tweens.Contains(tween))
     {
         Debug.LogWarning("Tried to add duplicate tween to manager");
         return;
     }
     toAddTweens.Add(tween);
 }
예제 #3
0
 public static void AddTween(FTweener tween)
 {
     if (!Platform.IsInMainThread)
     {
         Scripting.InvokeOnUpdate(() => {
             AddTween(tween);
         });
         return;
     }
     Instance.AddT(tween);
 }
예제 #4
0
        public Sequence Insert(FTweener tween, float time)
        {
            if (tween.loops != 0)
            {
                Debug.LogWarning("You cant have loop tween in sequence, setting tween loops to 0");
                tween.loops = 0;
            }
            duration            = Mathf.Max(duration, time + (tween.duration * tween.timeScale * timeScale) + tween.startDelay);
            lastTweenInsertTime = time;
            tween.parentSeq     = this;

            tweens.Add(new SeqTween(time, tween));
            return(this);
        }
예제 #5
0
 public FTWeenerAwaiter(FTweener tween)
 {
     this.tween = tween;
 }
예제 #6
0
 public Sequence Insert(FTweener tween)
 {
     return(Insert(tween, lastTweenInsertTime));
 }
예제 #7
0
 public Sequence Append(FTweener tween)
 {
     return(Insert(tween, duration));
 }
예제 #8
0
 public SeqTween(float time, FTweener tween)
 {
     this.time  = time;
     this.tween = tween;
 }