浏览代码

Fixed Rig Manager Update not executing correctly when collection is modified during its execution. (#40)

/main
GitHub 4 年前
当前提交
12eff8ec
共有 2 个文件被更改,包括 10 次插入2 次删除
  1. 4
      CHANGELOG.md
  2. 8
      Runtime/Ingredients/Rigs/RigManager.cs

4
CHANGELOG.md


#### Added
#### Fixed
* Fixed Rig Manager Update not executing correctly when collection is modified during its execution.
## 2020.2.3
#### Added

8
Runtime/Ingredients/Rigs/RigManager.cs


var priorities = dict.Keys.OrderBy(i => i);
foreach(int priority in priorities)
{
foreach(var rig in dict[priority])
if(dict.ContainsKey(priority))
rig.UpdateRig(deltaTime);
foreach (var rig in dict[priority].ToArray())
{
rig.UpdateRig(deltaTime);
}
}
}

正在加载...
取消
保存