Skip to content

Commit f519812

Browse files
Always assign currentProgress when its less than progress
Moved the assigning of currentProgress out of the invokation of the onProgress event
1 parent e216efc commit f519812

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Scripts/Service/Unity/UnityHttpRequest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ private void UpdateProgress(ref float currentProgress, float progress, Action<fl
125125
{
126126
if (currentProgress < progress)
127127
{
128-
onProgress?.Invoke(currentProgress = progress);
128+
currentProgress = progress
129+
onProgress?.Invoke(currentProgress);
129130
}
130131
}
131132
}

0 commit comments

Comments
 (0)