void LateUpdate() { if (TweenManager.hasActiveLateTweens) { TweenManager.Update(UpdateType.Late, (DOTween.useSmoothDeltaTime ? Time.smoothDeltaTime : Time.deltaTime) * DOTween.timeScale, _unscaledDeltaTime * DOTween.timeScale); } }
void FixedUpdate() { if (TweenManager.hasActiveFixedTweens && Time.timeScale > 0) { TweenManager.Update(UpdateType.Fixed, (DOTween.useSmoothDeltaTime ? Time.smoothDeltaTime : Time.deltaTime) * DOTween.timeScale, ((DOTween.useSmoothDeltaTime ? Time.smoothDeltaTime : Time.deltaTime) / Time.timeScale) * DOTween.timeScale); } }
void Update() { _unscaledDeltaTime = Time.realtimeSinceStartup - _unscaledTime; if (TweenManager.hasActiveDefaultTweens) { TweenManager.Update(UpdateType.Normal, (DOTween.useSmoothDeltaTime ? Time.smoothDeltaTime : Time.deltaTime) * DOTween.timeScale, _unscaledDeltaTime * DOTween.timeScale); } _unscaledTime = Time.realtimeSinceStartup; if (DOTween.isUnityEditor) { inspectorUpdater++; if (DOTween.showUnityEditorReport && TweenManager.hasActiveTweens) { if (TweenManager.totActiveTweeners > DOTween.maxActiveTweenersReached) { DOTween.maxActiveTweenersReached = TweenManager.totActiveTweeners; } if (TweenManager.totActiveSequences > DOTween.maxActiveSequencesReached) { DOTween.maxActiveSequencesReached = TweenManager.totActiveSequences; } } } }
void FixedUpdate() { if (TweenManager.hasActiveFixedTweens && Time.timeScale > 0) { TweenManager.Update(UpdateType.Fixed, Time.deltaTime * DOTween.timeScale, (Time.deltaTime / Time.timeScale) * DOTween.timeScale); } }
void LateUpdate() { if (TweenManager.hasActiveLateTweens) { TweenManager.Update(UpdateType.Late, Time.deltaTime * DOTween.timeScale, _unscaledDeltaTime * DOTween.timeScale); } }
internal void ManualUpdate(float deltaTime, float unscaledDeltaTime) { if (TweenManager.hasActiveManualTweens) { TweenManager.Update(UpdateType.Manual, deltaTime * DOTween.timeScale, unscaledDeltaTime * DOTween.timeScale); } }
void FixedUpdate() { if (TweenManager.hasActiveFixedTweens) { TweenManager.Update(UpdateType.Fixed, Time.fixedDeltaTime * DOTween.timeScale, _unscaledDeltaTime * DOTween.timeScale); } }