1 messages · Page 1 of 1 (latest)
WaitForSeconds is designed to be used with coroutines
and it needs to be used like this:
yield return new WaitForSeconds(5);
You probably found that you can't yield in this method as it is not a coroutine.