Esempio n. 1
0
 static public EaseFunction MakeEaseFunction(EaseShape shape, EaseMode mode = EaseMode.InOut)
 {
     if (mode == EaseMode.None) { return EaseFunction.None; }
     string[] shapes = Enum.GetNames(typeof (EaseShape));
     return (EaseFunction) ((int) shape + shapes.Length * (int)mode);
 }
Esempio n. 2
0
 static public BaseTween.EasingFunction GetEaseFunction(EaseShape shape, EaseMode mode) { return GetEaseFunction(MakeEaseFunction(shape, mode)); }
Esempio n. 3
0
 public BaseTween Easing(EaseShape s, EaseMode t) { easing = Mathfl.GetEaseFunction(s,t); return (this); }