static public Tweener <Vector2, _V2Helper> To(IVector2Property property, Vector2 to, float duration, bool scalable = true) { Tweener <Vector2, _V2Helper> tweener = _vector2Tweeners.Get(); tweener.IncRef(); var aniMgr = TimerMgr._Instance; tweener.SetParams(property, scalable ? aniMgr._Time : aniMgr._RealTime , duration, property.GetValue(), to - property.GetValue(), scalable); tweener.Start(); return(tweener); }
static public Tweener <Color, ColorHelper> To(IColorProperty property, Color to, float duration, bool scalable = true) { Tweener <Color, ColorHelper> tweener = _colorTweeners.Get(); tweener.IncRef(); var aniMgr = TimerMgr._Instance; tweener.SetParams(property, scalable ? aniMgr._Time : aniMgr._RealTime , duration, property.GetValue(), to - property.GetValue(), scalable); tweener.Start(); return(tweener); }