Example #1
0
        static public TweenValue Begin(GameObject go, float duration, float from, float to, Function func)
        {
            TweenValue comp = Tween.Begin <TweenValue>(go, duration);

            comp.from = from;
            comp.to   = to;
            comp.func = func;
            if (duration <= 0f)
            {
                comp.sample(1f, true);
                comp.enabled = false;
            }
            return(comp);
        }