Sequencing animation with for loop?

Hi, I was just trying to find a way to have an array of game objects and then have each animation on each object happen one at a time.

If anyone can give any advice that would be great.

code=CSharp]
public GameObject [ ] objects = new GameObject[3];

// Use this for initialization
void Start () {
foreach (GameObject Anim in objects)
{

for (int x = 0; x < objects.Length; x++)
{
Anim.GetComponent().Play();

}

}
}
}[/code]

Use a coroutine.

Thanks for your feedback. I’m just trying to learn more coding and I did do at as coroutine I was just wondering whether it was possible as an array. But also I want it heaps of ways, for example as an FSM next. Then I might finally try to learn mechanim or whatever its call. Just to mainly learn about coding. [quote=“GroZZleR, post:2, topic: 680066, username:GroZZleR”]
Use a coroutine.
[/quote]