+ 1

How do you wait in C#?

For a Unity project, I want to make an object stop moving for half a second. How do I do this? I read something about courountine, maybe if thats the only way, someone could explain it for me? Thanks!

18th Mar 2018, 2:22 AM
Frenchtoast
Frenchtoast - avatar
4 Answers
+ 3
Here's an explanation from Unity: https://docs.unity3d.com/Manual/Coroutines.html I don't know if it's the best way, but apparently it is the recommended way.
18th Mar 2018, 2:37 AM
ChaoticDawg
ChaoticDawg - avatar
0
I found that. I just would like an explanation of courountines if thats the best way.
18th Mar 2018, 2:34 AM
Frenchtoast
Frenchtoast - avatar
0
Thanks!
18th Mar 2018, 2:38 AM
Frenchtoast
Frenchtoast - avatar