persatuan untuk array loop
for(int i = 0; i < Objects.Length; i++)
{
dot.SetActive(Objects[i] == ItemLookingAt);
}
Boateye
for(int i = 0; i < Objects.Length; i++)
{
dot.SetActive(Objects[i] == ItemLookingAt);
}
for (int i = 0; i < Objects.Length; i++)
{
if (Objects[i] == ItemLookingAt)
{
dot.SetActive(true);
} else
{
dot.SetActive(false);
}
}