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; }
public IAnimator <T> Start(T startValue) { return(new DebugLogAnimator <T>(animator.Start(startValue))); }
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); }
public IAnimator <T> Start(T startValue) { return(new ConcatAnimator <T>(animator1.Start(startValue), animator2)); }
public IAnimator <T> Start(T startValue) { return(new ConvertAnimator <T, T>(animator.Start(startValue), func)); }
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)); }
public void Start(T startValue) { animator.Start(startValue); }