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); }
public void Detach() { _property = null; }
public void Attach(IProperty property) { _property = property as IVector2Property; }