override protected void UpdateValue(Easings e, float t, float d) { var v = Vector2.zero; v.x = e.Calculate(t, from.x, to.x - from.x, d); v.y = e.Calculate(t, from.y, to.y - from.y, d); value = v; }
protected virtual void Reset() { duration = 0f; delayTime = 0f; elapsedTime = 0f; easing = null; OnComplete = null; }
protected override void UpdateValue(Easings e, float t, float d) { var v = Vector2.zero; v.x = e.Calculate(t, FromValue.x, ToValue.x - FromValue.x, d); v.y = e.Calculate(t, FromValue.y, ToValue.y - FromValue.y, d); Value = v; }
protected abstract void UpdateValue(Easings e, float t, float d);
protected override void UpdateValue(Easings e, float t, float d) { }
override protected void UpdateValue(Easings e, float t, float d) { value = e.Calculate(t, from, to - from, d); }
protected override void UpdateValue(Easings e, float t, float d) { Value = e.Calculate(t, FromValue, ToValue - FromValue, d); }