public static Tweener To(DoGetter <float> getter, DoSetter <float> setter, float toNumber, float variable) { Tweener t = new FloatTweener(getter, setter, toNumber, variable); t.DoTween(); return(t); }
/// <summary> /// float 数值 /// </summary> /// <param name="number"></param> /// <param name="toNumber"></param> /// <param name="variable"></param> /// <returns></returns> public static Tweener To(DoGetter <float> getter, DoSetter <float> setter, float toNumber, float variable) { Tweener t = new FloatTweener(getter, setter, toNumber, variable); TweenManager.Instance.AddTween(t); return(t); }
public FloatTweener(DoGetter <float> getter, DoSetter <float> setter, float target, float variable) : base(variable) { Variable = variable; m_Value = getter(); m_Setter += setter; m_FixedStartValue = m_Value; TargetValue = target; m_IsFirstDelay = true; }