protected override void Interpolate(float n) { var value = TweenMember <T> .Add(_startValue, TweenMember <T> .Multiply(_range, n)); Member.Value = value; }
internal Tween(object target, float duration, float delay, TweenMember <T> member, T endValue) : base(target, duration, delay) { Member = member; _endValue = endValue; }
protected override void Initialize() { _startValue = Member.Value; _range = TweenMember <T> .Subtract(_endValue, _startValue); }