Adding little delays between doing things to objects in array

Okay what I want is I have 3 objects in an array, they are all grey.

When I press on a button I want them to color white 1 by 1, with a slight delay in between, they are all stored in an array how can I do this?

I’d recommend using a Coroutine or Invoke. Coroutine lets you wait for a period of time while the function is running. Invoke lets you wait a period of time before calling a function.

public IEnumerator IterateWithPause()
{
SpriteRenderer sprites; // imagine its already pre-populated;
foreach(SpriteRenderer s in sprites)
{
s.color = Color.white;
yield return new WaitForSeconds(0.3f);
}
}