Esempio n. 1
0
        public static TweenTransform Begin(GameObject go, float duration, Transform from, Transform to)
        {
            TweenTransform tweenTransform = UITweener.Begin <TweenTransform>(go, duration);

            tweenTransform.from = from;
            tweenTransform.to   = to;
            if (duration <= 0f)
            {
                tweenTransform.Sample(1f, true);
                tweenTransform.enabled = false;
            }
            return(tweenTransform);
        }
Esempio n. 2
0
 public static TweenTransform Begin(GameObject go, float duration, Transform to)
 {
     return(TweenTransform.Begin(go, duration, null, to));
 }