Quantcast
Channel: Answers for "Create a 10 second delay using WaitForSeconds"
Browsing all 4 articles
Browse latest View live

Answer by Bunny83

You don't understand how coroutines works. When calling RandomPowerup in Update the function returns immediately and just starts a new coroutine that runs on its own. Since you start a new one each...

View Article



Answer by Bunny83

Another way would be to Use an infinite loop inside the Coroutine. But the disadvantage is that you can't stop it from outside. To be able to stop it you could again use a boolean outside of the...

View Article

Answer by Bunny83

You don't understand how coroutines works. When calling RandomPowerup in Update the function returns immediately and just starts a new coroutine that runs on its own. Since you start a new one each...

View Article

Answer by Bunny83

Another way would be to Use an infinite loop inside the Coroutine. But the disadvantage is that you can't stop it from outside. To be able to stop it you could again use a boolean outside of the...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images