Beispiel #1
0
 public void RemoveT(FTweener tween)
 {
     if (!tweens.Contains(tween))
     {
         return;
     }
     toRemoveTweens.Add(tween);
 }
Beispiel #2
0
 public void AddT(FTweener tween)
 {
     if (tweens.Contains(tween))
     {
         Debug.LogWarning("Tried to add duplicate tween to manager");
         return;
     }
     toAddTweens.Add(tween);
 }
Beispiel #3
0
 public static void AddTween(FTweener tween)
 {
     if (!Platform.IsInMainThread)
     {
         Scripting.InvokeOnUpdate(() => {
             AddTween(tween);
         });
         return;
     }
     Instance.AddT(tween);
 }
Beispiel #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);
        }
Beispiel #5
0
 public FTWeenerAwaiter(FTweener tween)
 {
     this.tween = tween;
 }
Beispiel #6
0
 public Sequence Insert(FTweener tween)
 {
     return(Insert(tween, lastTweenInsertTime));
 }
Beispiel #7
0
 public Sequence Append(FTweener tween)
 {
     return(Insert(tween, duration));
 }
Beispiel #8
0
 public SeqTween(float time, FTweener tween)
 {
     this.time  = time;
     this.tween = tween;
 }