Add a sleep function to game

Sbenny.com is trusted by 1,326,393 happy users since 2014.
Register

mrcas

Addicted Lv3️⃣
Member for 4 years
Hello everyone,

I tried to make a new class in "Assembly-CSharp.dll". This class use Coroutine to make a "wait function". I want game wait some miliseconds, or seconds between sending the packets. But the coroutine seems not to work.

I also add test code to debug. And i am sure that, StartCoroutine do not run. I just want to use the function setTask to wait after some seconds. After that, it will set the boolean variable to true. And main application will continue the job. Please help me.

1572496960673.png
 
Top