public GameObject[] color;
void Start()
{
for (int i = 0; i < color.Length; i++)
{
if ()
{
Debug.Log("Red");
}
}
}
if (color[i].name == "Red")
{
Debug.Log("Red");
}