Exemple #1
0
 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);
 }
Exemple #2
0
 public EasingCurve(EasingCurveType type)
 {
     this.Type = type;
 }