示例#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.set_enabled(false);
        }
        return(tweenTransform);
    }