public static string Add(Quaternion start, Quaternion end, float duration, float delay, AnimationCurve curve, Tween.LoopType loopType, Action <Quaternion> progressCallback, Action completeCallback = null, bool destroyWhenDone = true) { TweenObject newTweenObject = new TweenObject(start, end, duration, delay, curve, loopType, progressCallback, completeCallback, destroyWhenDone); Instance.tweens.Add(newTweenObject); return(newTweenObject.id); }
public static string Add(TweenObject tweenObject) { Instance.tweens.Add(tweenObject); return(tweenObject.id); }