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); }
static public BaseTween.EasingFunction GetEaseFunction(EaseShape shape, EaseMode mode) { return GetEaseFunction(MakeEaseFunction(shape, mode)); }
public BaseTween Easing(EaseShape s, EaseMode t) { easing = Mathfl.GetEaseFunction(s,t); return (this); }