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);
}
}
// Wraping around an array or list
currentIndex = (currentIndex + 1) % myList.Count; // Forward
currentIndex = (myList.Count + currentIndex - 1) % myList.Count; //Backward