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