#Why my Coroutine doesn't work
1 messages · Page 1 of 1 (latest)
Your coroutine is working fine. The problem is that you are not doing anything after the delay
What
in coroutine, I just want to delay it
Which you are
And then the coroutine ends
Coroutines run completely independently of the code that starts them.
All you're doing here is telling the Win method to start the Delay coroutine. Start it. After the coroutine has started, it then continues on and sets the sprite
StartCoroutine does not wait for the coroutine to complete
but it does continue without delaying
Yes, that is by design
np 👍
problem
StartCoroutine(Player.Win());
I want to do this
Can it be possible
@thin cobalt
yes