Esempio n. 1
0
        public void SetTweenTimeScale(Tweener tweener)
        {
            if (tweener == null)
            {
                return;
            }

            tweener.timeScale = TimeScale.Current;

            TimeScale.OnTimeScaleChangedAsObservable()
            .TakeWhile(_ => !tweener.IsComplete())
            .Subscribe(x => tweener.timeScale = x)
            .AddTo(Disposable);
        }