public static ICompletable MoveBy(this Transform This, Vector3 delta, float duration, IEaser easer = null) => Completable.Defer(() => { var source = This.localPosition; var target = source + delta; return(Range(duration, easer) .Lerp(source, target) .Do(x => This.localPosition = x) .AsCompletable()); });
public static object Add(this ISequencer This, Func <ICompletable> completableFactory) => This.Add(Completable.Defer(completableFactory));
protected static ICompletable GetCompletableFromItem(object item) => item as ICompletable ?? Completable.Defer((Func <ICompletable>)item);