Example #1
0
 public static UniTask ToLocalScaleZ(this IAnimator <float> animator, Component component, CancellationToken cancellationToken   = default, IScheduler scheduler = default) => Anime.Play(animator, new LocalScaleXTranslator(component.transform, 2), scheduler, cancellationToken);
Example #2
0
 public static UniTask ToColorA(this IAnimator <float> animator, Graphic graphic, CancellationToken cancellationToken = default, IScheduler scheduler = default) => Anime.Play(animator, new ColorXTranslator(graphic, 3), scheduler, cancellationToken);
Example #3
0
 public static UniTask ToMaterialPropertyInt(this IAnimator <int> animator, Renderer renderer, int nameID, CancellationToken cancellationToken  = default, IScheduler scheduler = default) => Anime.Play(animator, new MaterialPropertyIntTranslator(renderer, nameID), scheduler, cancellationToken);
Example #4
0
 public static UniTask ToLocalScaleZ(this IAnimator <float> animator, GameObject gameObject, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new LocalScaleXTranslator(gameObject.transform, 2), scheduler, CancellationTokenSource.CreateLinkedTokenSource(gameObject.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken);
Example #5
0
 public static UniTask ToLocalPosition(this IAnimator <Vector3> animator, Component component, CancellationToken cancellationToken   = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new LocalPositionTranslator(component.transform), scheduler, CancellationTokenSource.CreateLinkedTokenSource(component.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken);
Example #6
0
 public static UniTask ToAction <T>(this IAnimator <T> animator, Action <T> action, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new ActionTranslator <T>(action), scheduler, cancellationToken, skipToken);
Example #7
0
 public static UniTask ToColorA(this IAnimator <float> animator, Graphic graphic, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new ColorXTranslator(graphic, 3), scheduler, CancellationTokenSource.CreateLinkedTokenSource(graphic.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken);
 public static UniTask ToSizeDeltaY(this IAnimator <float> animator, GameObject gameObject, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default)
 {
     CheckAlive(gameObject);
     return(Anime.Play(animator, new SizeDeltaXTranslator(gameObject.GetComponent <RectTransform>(), 1), scheduler, CancellationTokenSource.CreateLinkedTokenSource(gameObject.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken));
 }
 public static UniTask ToSizeDeltaY(this IAnimator <float> animator, Graphic graphic, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default)
 {
     CheckAlive(graphic);
     return(Anime.Play(animator, new SizeDeltaXTranslator(graphic.rectTransform, 1), scheduler, CancellationTokenSource.CreateLinkedTokenSource(graphic.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken));
 }
Example #10
0
 public static UniTask ToBind <T>(this IAnimator <T> animator, Func <T> getter, Action <T> setter, Object unityObject, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default)
 {
     return(Anime.Play(animator, new BindTranslatorWithObject <T>(getter, setter, unityObject), scheduler, cancellationToken, skipToken));
 }
 public static UniTask ToSizeDelta(this IAnimator <Vector2> animator, RectTransform rectTransform, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default)
 {
     CheckAlive(rectTransform);
     return(Anime.Play(animator, new SizeDeltaTranslator(rectTransform), scheduler, CancellationTokenSource.CreateLinkedTokenSource(rectTransform.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken));
 }
Example #12
0
 public static UniTask ToMaterialPropertyInt(this IAnimator <int> animator, Renderer renderer, string name, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default)
 {
     CheckAlive(renderer);
     return(Anime.Play(animator, new MaterialPropertyIntTranslator(renderer, name), scheduler, CancellationTokenSource.CreateLinkedTokenSource(renderer.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken));
 }
Example #13
0
 public static UniTask ToLocalPosition(this IAnimator <Vector3> animator, Component component, CancellationToken cancellationToken   = default, IScheduler scheduler = default) => Anime.Play(animator, new LocalPositionTranslator(component.transform), scheduler, cancellationToken);
Example #14
0
 public static UniTask ToGlobalRotation(this IAnimator <Quaternion> animator, Component component, CancellationToken cancellationToken   = default, IScheduler scheduler = default) => Anime.Play(animator, new GlobalRotationTranslator(component.transform), scheduler, cancellationToken);
Example #15
0
 public static UniTask ToAnchoredPositionY(this IAnimator <float> animator, GameObject gameObject, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new AnchoredPositionXTranslator(gameObject.GetComponent <RectTransform>(), 1), scheduler, CancellationTokenSource.CreateLinkedTokenSource(gameObject.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken);
 public static UniTask ToAnchoredPosition(this IAnimator <Vector2> animator, Graphic graphic, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default)
 {
     CheckAlive(graphic);
     return(Anime.Play(animator, new AnchoredPositionTranslator(graphic.rectTransform), scheduler, CancellationTokenSource.CreateLinkedTokenSource(graphic.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken));
 }
Example #17
0
 public static UniTask ToAnchoredPositionY(this IAnimator <float> animator, Graphic graphic, CancellationToken cancellationToken       = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new AnchoredPositionXTranslator(graphic.rectTransform, 1), scheduler, CancellationTokenSource.CreateLinkedTokenSource(graphic.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken);
 public static UniTask ToAnchoredPositionX(this IAnimator <float> animator, RectTransform rectTransform, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default)
 {
     CheckAlive(rectTransform);
     return(Anime.Play(animator, new AnchoredPositionXTranslator(rectTransform, 0), scheduler, CancellationTokenSource.CreateLinkedTokenSource(rectTransform.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken));
 }
Example #19
0
 public static UniTask ToText(this IAnimator <float> animator, Text text, string format, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new TextTranslator(text, format), scheduler, CancellationTokenSource.CreateLinkedTokenSource(text.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken);
Example #20
0
 public static UniTask ToAction <T>(this IAnimator <T> animator, Action <T> action, Object unityObject, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default)
 {
     return(Anime.Play(animator, new ActionTranslatorWithObject <T>(action, unityObject), scheduler, cancellationToken, skipToken));
 }
Example #21
0
 public static UniTask ToFillAmount(this IAnimator <float> animator, Image image, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new FillAmountTranslator(image), scheduler, CancellationTokenSource.CreateLinkedTokenSource(image.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken);
Example #22
0
 public static UniTask ToProgress <T>(this IAnimator <T> animator, IProgress <T> progress, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new ProgressTranslator <T>(progress), scheduler, cancellationToken, skipToken);
Example #23
0
 public static UniTask ToGlobalRotation(this IAnimator <Quaternion> animator, GameObject gameObject, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new GlobalRotationTranslator(gameObject.transform), scheduler, CancellationTokenSource.CreateLinkedTokenSource(gameObject.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken);
Example #24
0
 public static UniTask ToBind <T>(this IAnimator <T> animator, Func <T> getter, Action <T> setter, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new BindTranslator <T>(getter, setter), scheduler, cancellationToken, skipToken);
Example #25
0
 public static UniTask ToReactiveProperty <T>(this IAnimator <T> animator, ReactiveProperty <T> reactiveProperty, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new ReactivePropertyTranslator <T>(reactiveProperty), scheduler, cancellationToken, skipToken);
Example #26
0
 public static UniTask ToNone <T>(this IAnimator <T> animator, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default)
 {
     return(Anime.Play(animator, new NoneTranslator <T>(), scheduler, cancellationToken, skipToken));
 }
Example #27
0
 public static UniTask ToText(this IAnimator <float> animator, Text text, string format, CancellationToken cancellationToken = default, IScheduler scheduler = default) => Anime.Play(animator, new TextTranslator(text, format), scheduler, cancellationToken);
Example #28
0
 public static UniTask ToMaterialPropertyColor(this IAnimator <Color> animator, Renderer renderer, string name, CancellationToken cancellationToken = default, SkipToken skipToken = default, IScheduler scheduler = default) => Anime.Play(animator, new MaterialPropertyColorTranslator(renderer, name), scheduler, CancellationTokenSource.CreateLinkedTokenSource(renderer.GetCancellationTokenOnDestroy(), cancellationToken).Token, skipToken);
Example #29
0
 public static UniTask ToMaterialPropertyColor(this IAnimator <Color> animator, Renderer renderer, string name, CancellationToken cancellationToken = default, IScheduler scheduler = default) => Anime.Play(animator, new MaterialPropertyColorTranslator(renderer, name), scheduler, cancellationToken);
Example #30
0
 public static UniTask ToLocalScaleY(this IAnimator <float> animator, GameObject gameObject, CancellationToken cancellationToken = default, IScheduler scheduler = default) => Anime.Play(animator, new LocalScaleXTranslator(gameObject.transform, 1), scheduler, cancellationToken);