Exemplo n.º 1
0
        public static async Task PlayTo <T>(IAnimatorWithStartValue <T> animator, IValueTranslator <T> translator, IScheduler scheduler)
        {
            var awaitable = new AwaitableEnumerator();

            animator.Start(translator.Current);
            StartCoroutine(PlayCoroutine(new DummyAnimator <T>(animator), translator, awaitable, scheduler));
            await awaitable;
        }
Exemplo n.º 2
0
 public IAnimator <T> Start(T startValue)
 {
     return(new DebugLogAnimator <T>(animator.Start(startValue)));
 }
Exemplo n.º 3
0
 public static async UniTask PlayTo <T>(IAnimatorWithStartValue <T> animator, IValueTranslator <T> translator, IScheduler scheduler, CancellationToken cancellationToken = default)
 {
     animator.Start(translator.Current);
     await PlayInternal(new DummyAnimator <T>(animator), translator, scheduler, cancellationToken);
 }
Exemplo n.º 4
0
 public IAnimator <T> Start(T startValue)
 {
     return(new ConcatAnimator <T>(animator1.Start(startValue), animator2));
 }
Exemplo n.º 5
0
 public IAnimator <T> Start(T startValue)
 {
     return(new ConvertAnimator <T, T>(animator.Start(startValue), func));
 }
Exemplo n.º 6
0
        public static UniTask PlayTo <T>(IAnimatorWithStartValue <T> animatorWithStartValue, IValueTranslator <T> translator, IScheduler scheduler = default, CancellationToken cancellationToken = default, SkipToken skipToken = default)
        {
            var animator = animatorWithStartValue.Start(translator.Current);

            return(PlayInternal(animator, translator, scheduler, cancellationToken, skipToken));
        }
Exemplo n.º 7
0
 public void Start(T startValue)
 {
     animator.Start(startValue);
 }