hi, i need some help with WaitForSeconds please. i try to set a 5 seconds timeout within the method Replay: Code (csharp): private void onReplay() { Debug.Log("onReplay"); Replay(); } private IEnumerator Replay() { Debug.Log("before yield"); yield return new WaitForSeconds (5); Debug.Log("after yield"); } Now I get the debug log "onReplay" and no further logs or any errors. I cant explain to myself why the method Replay wont be called. If i remove the line with yield and change the return type to void everything is fine and i get all logs. I would be glad for any help.
oh great. thats it. thank you very much matt! I do not understand how its pssible to block my method call anyway. So if anybody has some background knowledge and want to share it, that would be nice. But for now i am happy to have a working script.