Exemplo n.º 1
0
 public static IObservable <Unit> TweenTo(this IReactiveProperty <TimeSpan?> This, TimeSpan target, float duration, Ease ease = Ease.Linear, bool completeTweenOnDispose = false) =>
 This.TweenTo(() => DOTween.To(() => This.Value?.Ticks ?? 0, x => This.Value = TimeSpan.FromTicks(x), target.Ticks, duration), ease, completeTweenOnDispose);
 protected override ICompletable Tween(IReactiveProperty <Vector2> property, Vector2 target, float duration, Vector2 velocity, IEaser easer) =>
 property.TweenTo(target, duration, () => velocity, easer);
Exemplo n.º 3
0
 public static IObservable <Unit> TweenTo(this IReactiveProperty <float?> This, float target, float duration, Ease ease = Ease.Linear, bool completeTweenOnDispose = false) =>
 This.TweenTo(() => DOTween.To(() => This.Value ?? 0f, x => This.Value = x, target, duration), ease, completeTweenOnDispose);