示例#1
0
        public static ITween TweenScale(this Transform owner, Vector3 target, float duration)
        {
            Vector3TweenState state = TweenPool.V3.Get(s => s.Init(owner.localScale, v => owner.localScale = v, target));

            return(Tweener.Create(owner, state, duration));
        }
示例#2
0
        public static ITween Tween(this Component owner, Func <Vector3> get, Action <Vector3> set, Vector3 target, float duration)
        {
            Vector3TweenState state = TweenPool.V3.Get(s => s.Init(get(), set, target));

            return(Tweener.Create(owner, state, duration));
        }