Ejemplo n.º 1
0
        public static IEnumerator NewEase(XInterpolate.Function ease, Vector3 start, Vector3 end, int slices)
        {
            IEnumerable <float> driver = XInterpolate.NewCounter(0, slices + 1, 1);

            return(XInterpolate.NewEase(ease, start, end, (float)(slices + 1), driver));
        }
Ejemplo n.º 2
0
        public static IEnumerator NewEase(XInterpolate.Function ease, Vector3 start, Vector3 end, float duration)
        {
            IEnumerable <float> driver = XInterpolate.NewTimer(duration);

            return(XInterpolate.NewEase(ease, start, end, duration, driver));
        }