private static IEnumerator DoClip <T>(ITweenClip <T> tweenClip, ISumable <T> sumable) { float timer = 0; var res = sumable.Reduce(tweenClip.to, tweenClip.from); while (timer < tweenClip.duration) { var progress = timer / tweenClip.duration; } yield return(null); }
/// <summary> /// Not implemt /// </summary> /// <typeparam name="T"></typeparam> /// <param name="tweenClip"></param> /// <param name="sumable"></param> public static void DoTween <T>(ITweenClip <T> tweenClip, ISumable <T> sumable) { CoroutineHelper.StaticStartCoroutine(DoClip(tweenClip, sumable)); }
/// <summary> /// Not implemt /// </summary> /// <typeparam name="T"></typeparam> /// <param name="tweenClip"></param> /// <param name="curr"></param> public static void DoTween <T>(ITweenClip <T> tweenClip, Func <float, T> curr) { }