Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 8
0
 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));
 }
Exemplo n.º 9
0
 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 11
0
 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));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 16
0
 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));
 }
Exemplo n.º 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);
Exemplo n.º 18
0
 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));
 }
Exemplo n.º 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);
Exemplo n.º 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));
 }
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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));
 }
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);