I am new to use playerIO, I am wondering how I can use sleep function in server side code. I tried to use some think like
- Code: Select all
System.Threading.Thread.Sleep(5000);
- error: MyGame.GameCode.GotMessage(...) uses the non-allowed method: System.Void System.Threading.Thread::Sleep(System.Int32)
My goal of using this function is do something after some seconds, for example staring a game in 5 secs.
any idea will be appreciated,
Thanks