diff --git a/src/AtomAnimations/Animations/AtomAnimation.cs b/src/AtomAnimations/Animations/AtomAnimation.cs index e6cbb3dc..72e6b614 100644 --- a/src/AtomAnimations/Animations/AtomAnimation.cs +++ b/src/AtomAnimations/Animations/AtomAnimation.cs @@ -49,7 +49,7 @@ public void Update() { case TimeModes.RealTime: var currentUpdateTime = _stopwatch.Elapsed; - deltaTime = (float)(currentUpdateTime - _lastUpdateTime).TotalSeconds; + deltaTime = ((float)(currentUpdateTime - _lastUpdateTime).TotalSeconds) * Time.timeScale; _lastUpdateTime = _stopwatch.Elapsed; break; case TimeModes.RealTimeLegacy: @@ -89,7 +89,7 @@ public void FixedUpdate() { case TimeModes.RealTime: var currentFixedUpdateTime = _stopwatch.Elapsed; - deltaTime = (float)(currentFixedUpdateTime - _lastFixedUpdateTime).TotalSeconds; + deltaTime = ((float)(currentFixedUpdateTime - _lastFixedUpdateTime).TotalSeconds) * Time.timeScale; _lastFixedUpdateTime = _stopwatch.Elapsed; break; case TimeModes.RealTimeLegacy: