Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static IEnumerator Create<T>(T from, T to, float duration, ValueChangedDe
yield return null;

if (getDeltaTime == null)
timeSec += Time.deltaTime;
timeSec += Time.unscaledDeltaTime;
else
timeSec += getDeltaTime.Invoke();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ private void Reset()

private void Update()
{
_timeFromLastClickSec += Time.deltaTime;
_timeFromLastClickSec += Time.unscaledDeltaTime;
if (_currentClickCount >= 1 && _timeFromLastClickSec >= resetTimeThresholdSec)
_currentClickCount = 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand All @@ -45,4 +45,4 @@ public void Unregister(IUpdatable target)
_targets.Remove(target);
}
}
}
}
8 changes: 4 additions & 4 deletions Packages/manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"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",
"com.unity.test-framework": "1.1.31",
"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",
Expand Down
8 changes: 4 additions & 4 deletions Packages/packages-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {}
},
"com.unity.collab-proxy": {
"version": "1.15.17",
"version": "1.17.2",
"depth": 0,
"source": "registry",
"dependencies": {
Expand All @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions ProjectSettings/ProjectVersion.txt
Original file line number Diff line number Diff line change
@@ -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)