예제 #1
0
        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);
        }
예제 #2
0
 public static string Add(TweenObject tweenObject)
 {
     Instance.tweens.Add(tweenObject);
     return(tweenObject.id);
 }