[Unity][C#]更新循环与广播哪个影响速度更高
发布时间
阅读量:
阅读量
A物体
-B物体
-B物体
-B物体
-B物体
...
for循环
A.cs
...
for (int i = 0; i < listchilds.Count; i++)
{
listchilds[i].test();
}
...
B.cs
...
public void test()
{
...
}
...
update
B.cs
...
public A a;
...
public void Update()
{
if(a != null)
{
...
}
}
...
全部评论 (0)
还没有任何评论哟~
