static public IObservable <DOTweenAnimation> DOPlayAllByIdAsObservable( this DOTweenAnimation animation, string id, bool rewind = false) { return(Observable.Create <DOTweenAnimation>(o => { if (rewind) { animation.DORewind(); } animation.tween.OnComplete(() => { o.OnNext(animation); o.OnCompleted(); }); animation.DOPlayAllById(id); return Disposable.Empty; })); }