浏览代码

RigManager : Small Fix

/main
Thomas ICHÉ 4 年前
当前提交
2d7f6924
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 9
      Runtime/Ingredients/Rigs/RigManager.cs

9
Runtime/Ingredients/Rigs/RigManager.cs


m_FixedUpdateRigs = new Dictionary<int, List<Rig>>();
}
private void OnDisable()
{
m_UpdateRigs.Clear();
m_LateUpdateRigs.Clear();
m_FixedUpdateRigs.Clear();
}
public void RegistedRig(Rig rig)
{

dict[priority].Remove(rig);
}
if(dict[priority].Count == 0)
if(dict.ContainsKey(priority) && dict[priority].Count == 0)
{
dict.Remove(priority);
}

正在加载...
取消
保存