示例#1
0
        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);
        }
示例#2
0
 /// <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));
 }
示例#3
0
 /// <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)
 {
 }