#Yield return new WaitForSeconds() not working on NetworkBehaviour script

4 messages · Page 1 of 1 (latest)

bright turtle
#

I updated to the newer version of Fishnet and yield return new WaitForSeconds() no longer works, it doesn't get to the next step even if I wait for 0.2 seconds.
Before updating it worked fine and it works fine on another script that isn't NetworkBehaviour. Is this something to do with the Time manager or a setting that changed?

thorny oasis
#

Where are starting the coroutine?

bright turtle
#

I have an observersrpc that calls a function that calls StartCoroutine. I have checked with debug.log and the coroutine is being called, it just doesn't get to after the yield return new WaitForSeconds()

thorny oasis
#

Ah I see. I thought it could perhaps be the script disabling briefly which might cancel the coroutine, but perhaps not then.