public void ShowCards()
{
for (int i = 0; i < cards.Length; i++)
{
cards[i].GetComponent<Animator>().SetTrigger("slide in");
Wait(0.3f);
}
}
IEnumerator Wait(float time)
{
yield return new WaitForSeconds(time);
}```
i have an array of objects who all have the same animation, which i want to play at separate times one after another (0.3 seconds delay between the last one). when i run this though, all of them are animated at the same time. what am i doing wrong?
#staggering animations
1 messages · Page 1 of 1 (latest)