Skip to content

Commit 28a0d41

Browse files
committed
deltaTime -> unscaledDeltaTime
1 parent b0381cf commit 28a0d41

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Assets/UnityDebugSheet/Runtime/Foundation/Drawer/StatefulDrawerController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void IDragHandler.OnDrag(PointerEventData eventData)
9292
var delta = isHorizontal ? deltaPos.x : deltaPos.y;
9393
_drawer.Progress += _drawer.GetProgressFromDistance(delta) * (isInverse ? -1.0f : 1.0f);
9494

95-
_dragPositions.Add((eventData.position, Time.deltaTime));
95+
_dragPositions.Add((eventData.position, Time.unscaledDeltaTime));
9696
if (_dragPositions.Count > MaxPositionListSize)
9797
_dragPositions.RemoveAt(0);
9898

Assets/UnityDebugSheet/Runtime/Foundation/Drawer/TinyTween/TweenRoutineFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public static IEnumerator Create<T>(T from, T to, float duration, ValueChangedDe
1919
yield return null;
2020

2121
if (getDeltaTime == null)
22-
timeSec += Time.deltaTime;
22+
timeSec += Time.unscaledDeltaTime;
2323
else
2424
timeSec += getDeltaTime.Invoke();
2525

Assets/UnityDebugSheet/Runtime/Foundation/Gestures/Flicks/FlickListenerBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private void Move(Vector2 screenPosition)
6060
{
6161
_touchStartScreenPosition = screenPosition;
6262
}
63-
_positions.Add((screenPosition, Time.deltaTime));
63+
_positions.Add((screenPosition, Time.unscaledDeltaTime));
6464
if (_positions.Count > MaxListSize)
6565
_positions.RemoveAt(0);
6666

Assets/UnityDebugSheet/Runtime/Foundation/MultiClickDispatcher/MultiClickEventDispatcher.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ private void Reset()
2020

2121
private void Update()
2222
{
23-
_timeFromLastClickSec += Time.deltaTime;
23+
_timeFromLastClickSec += Time.unscaledDeltaTime;
2424
if (_currentClickCount >= 1 && _timeFromLastClickSec >= resetTimeThresholdSec)
2525
_currentClickCount = 0;
2626
}

Assets/UnityDebugSheet/Runtime/Foundation/PageNavigator/Modules/Animation/UpdateDispatcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ private void Update()
3030
{
3131
foreach (var target in _targets)
3232
{
33-
var deltaTime = target.Value?.Invoke(Time.deltaTime) ?? Time.deltaTime;
33+
var deltaTime = target.Value?.Invoke(Time.unscaledDeltaTime) ?? Time.unscaledDeltaTime;
3434
target.Key.Update(deltaTime);
3535
}
3636
}
@@ -45,4 +45,4 @@ public void Unregister(IUpdatable target)
4545
_targets.Remove(target);
4646
}
4747
}
48-
}
48+
}

0 commit comments

Comments
 (0)