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)); }
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)); }