📜  unity for 循环数组 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:03.854000             🧑  作者: Mango

代码示例2
for (int i = 0; i < Objects.Length; i++)
{
  if (Objects[i] == ItemLookingAt)
  {
    dot.SetActive(true);
  } else
  {
    dot.SetActive(false);
  }
}