diff --git a/Assets/UnityDebugSheet/Runtime/Foundation/Drawer/StatefulDrawerController.cs b/Assets/UnityDebugSheet/Runtime/Foundation/Drawer/StatefulDrawerController.cs index c5f113c..843573e 100644 --- a/Assets/UnityDebugSheet/Runtime/Foundation/Drawer/StatefulDrawerController.cs +++ b/Assets/UnityDebugSheet/Runtime/Foundation/Drawer/StatefulDrawerController.cs @@ -92,7 +92,7 @@ void IDragHandler.OnDrag(PointerEventData eventData) var delta = isHorizontal ? deltaPos.x : deltaPos.y; _drawer.Progress += _drawer.GetProgressFromDistance(delta) * (isInverse ? -1.0f : 1.0f); - _dragPositions.Add((eventData.position, Time.deltaTime)); + _dragPositions.Add((eventData.position, Time.unscaledDeltaTime)); if (_dragPositions.Count > MaxPositionListSize) _dragPositions.RemoveAt(0); diff --git a/Assets/UnityDebugSheet/Runtime/Foundation/Drawer/TinyTween/TweenRoutineFactory.cs b/Assets/UnityDebugSheet/Runtime/Foundation/Drawer/TinyTween/TweenRoutineFactory.cs index 48434fd..ff57dde 100644 --- a/Assets/UnityDebugSheet/Runtime/Foundation/Drawer/TinyTween/TweenRoutineFactory.cs +++ b/Assets/UnityDebugSheet/Runtime/Foundation/Drawer/TinyTween/TweenRoutineFactory.cs @@ -19,7 +19,7 @@ public static IEnumerator Create(T from, T to, float duration, ValueChangedDe yield return null; if (getDeltaTime == null) - timeSec += Time.deltaTime; + timeSec += Time.unscaledDeltaTime; else timeSec += getDeltaTime.Invoke(); diff --git a/Assets/UnityDebugSheet/Runtime/Foundation/Gestures/Flicks/FlickListenerBase.cs b/Assets/UnityDebugSheet/Runtime/Foundation/Gestures/Flicks/FlickListenerBase.cs index 3a12679..b92d5d3 100644 --- a/Assets/UnityDebugSheet/Runtime/Foundation/Gestures/Flicks/FlickListenerBase.cs +++ b/Assets/UnityDebugSheet/Runtime/Foundation/Gestures/Flicks/FlickListenerBase.cs @@ -60,7 +60,7 @@ private void Move(Vector2 screenPosition) { _touchStartScreenPosition = screenPosition; } - _positions.Add((screenPosition, Time.deltaTime)); + _positions.Add((screenPosition, Time.unscaledDeltaTime)); if (_positions.Count > MaxListSize) _positions.RemoveAt(0); diff --git a/Assets/UnityDebugSheet/Runtime/Foundation/MultiClickDispatcher/MultiClickEventDispatcher.cs b/Assets/UnityDebugSheet/Runtime/Foundation/MultiClickDispatcher/MultiClickEventDispatcher.cs index c1ac19c..bb36233 100644 --- a/Assets/UnityDebugSheet/Runtime/Foundation/MultiClickDispatcher/MultiClickEventDispatcher.cs +++ b/Assets/UnityDebugSheet/Runtime/Foundation/MultiClickDispatcher/MultiClickEventDispatcher.cs @@ -20,7 +20,7 @@ private void Reset() private void Update() { - _timeFromLastClickSec += Time.deltaTime; + _timeFromLastClickSec += Time.unscaledDeltaTime; if (_currentClickCount >= 1 && _timeFromLastClickSec >= resetTimeThresholdSec) _currentClickCount = 0; } diff --git a/Assets/UnityDebugSheet/Runtime/Foundation/PageNavigator/Modules/Animation/UpdateDispatcher.cs b/Assets/UnityDebugSheet/Runtime/Foundation/PageNavigator/Modules/Animation/UpdateDispatcher.cs index 6d07a68..94da15b 100644 --- a/Assets/UnityDebugSheet/Runtime/Foundation/PageNavigator/Modules/Animation/UpdateDispatcher.cs +++ b/Assets/UnityDebugSheet/Runtime/Foundation/PageNavigator/Modules/Animation/UpdateDispatcher.cs @@ -30,7 +30,7 @@ private void Update() { foreach (var target in _targets) { - var deltaTime = target.Value?.Invoke(Time.deltaTime) ?? Time.deltaTime; + var deltaTime = target.Value?.Invoke(Time.unscaledDeltaTime) ?? Time.unscaledDeltaTime; target.Key.Update(deltaTime); } } @@ -45,4 +45,4 @@ public void Unregister(IUpdatable target) _targets.Remove(target); } } -} \ No newline at end of file +} diff --git a/Packages/manifest.json b/Packages/manifest.json index 0a162c5..61dc002 100644 --- a/Packages/manifest.json +++ b/Packages/manifest.json @@ -1,12 +1,11 @@ { "dependencies": { - "com.yasirkula.ingamedebugconsole": "https://github.com/yasirkula/UnityIngameDebugConsole.git#v1.5.8", "com.tayx.graphy": "https://github.com/Tayx94/graphy.git", "com.unity.2d.sprite": "1.0.0", - "com.unity.collab-proxy": "1.15.17", + "com.unity.collab-proxy": "1.17.2", "com.unity.device-simulator": "3.0.3-preview", - "com.unity.ide.rider": "2.0.7", - "com.unity.ide.visualstudio": "2.0.15", + "com.unity.ide.rider": "3.0.15", + "com.unity.ide.visualstudio": "2.0.16", "com.unity.ide.vscode": "1.2.5", "com.unity.mobile.android-logcat": "1.3.2", "com.unity.postprocessing": "3.2.2", @@ -14,6 +13,7 @@ "com.unity.textmeshpro": "3.0.6", "com.unity.timeline": "1.4.8", "com.unity.ugui": "1.0.0", + "com.yasirkula.ingamedebugconsole": "https://github.com/yasirkula/UnityIngameDebugConsole.git#v1.5.8", "com.unity.modules.ai": "1.0.0", "com.unity.modules.androidjni": "1.0.0", "com.unity.modules.animation": "1.0.0", diff --git a/Packages/packages-lock.json b/Packages/packages-lock.json index 9b51544..313abe5 100644 --- a/Packages/packages-lock.json +++ b/Packages/packages-lock.json @@ -14,7 +14,7 @@ "dependencies": {} }, "com.unity.collab-proxy": { - "version": "1.15.17", + "version": "1.17.2", "depth": 0, "source": "registry", "dependencies": { @@ -37,16 +37,16 @@ "url": "https://packages.unity.com" }, "com.unity.ide.rider": { - "version": "2.0.7", + "version": "3.0.15", "depth": 0, "source": "registry", "dependencies": { - "com.unity.test-framework": "1.1.1" + "com.unity.ext.nunit": "1.0.6" }, "url": "https://packages.unity.com" }, "com.unity.ide.visualstudio": { - "version": "2.0.15", + "version": "2.0.16", "depth": 0, "source": "registry", "dependencies": { diff --git a/ProjectSettings/ProjectVersion.txt b/ProjectSettings/ProjectVersion.txt index 0f6bd7a..dd7e0b0 100644 --- a/ProjectSettings/ProjectVersion.txt +++ b/ProjectSettings/ProjectVersion.txt @@ -1,2 +1,2 @@ -m_EditorVersion: 2020.3.35f1 -m_EditorVersionWithRevision: 2020.3.35f1 (18e4db7a9996) +m_EditorVersion: 2020.3.40f1 +m_EditorVersionWithRevision: 2020.3.40f1 (ba48d4efcef1)