sequence

If this is just canned (eg, the same every time), make an animation and be done with it. You only need code in order to kick it off and even that can be automatic at scene load.

Otherwise…

Coroutines in a nutshell:

Splitting up larger tasks in coroutines:

Coroutines are NOT always an appropriate solution: know when to use them!

“Why not simply stop having so many coroutines ffs.” - orionsyndrome on Unity3D forums

Our very own Bunny83 has also provided a Coroutine Crash Course:

2 Likes