Skip to content

Commit

Permalink
fix progress update
Browse files Browse the repository at this point in the history
  • Loading branch information
pangweiwei committed Jul 21, 2017
1 parent a7e49f9 commit fd19382
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Assets/Plugins/Slua_Managed/LuaSvr.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// The MIT License (MIT)
// The MIT License (MIT)

// Copyright 2015 Siney/Pangweiwei [email protected]
//
Expand Down Expand Up @@ -150,6 +150,7 @@ private IEnumerator doBind(IntPtr L,Action<int> _tick,Action complete)
action(L);
bindProgress = (int)(((float)n / list.Count) * 98.0) + 2;
if (_tick!=null && lastProgress != bindProgress && bindProgress % 5 == 0) {
lastProgress = bindProgress;
tick (bindProgress);
yield return null;
}
Expand Down

0 comments on commit fd19382

Please sign in to comment.