public EasingCurve(EasingCurveType type, float from, float to, float duration, float t = 0) { Type = type; From = from; To = to; Duration = duration; T = t; var easingCurveMethodName = type.ToString(); Function = (EasingFunction) Delegate.CreateDelegate(typeof (EasingFunction), typeof (EasingCurve), easingCurveMethodName); }
public EasingCurve(EasingCurveType type) { this.Type = type; }