Hi All,
I’m having a bit of trouble with WaitForSeconds. If I pass in a float directly into it, it works fine. However, when I use a variable, it does not work. Am I missing something, or is WaitForSeconds not meant to work this way? Thanks in advance!
//this works
yield WaitForSeconds(0.5);
//this doesn't work
var delay : float = 0.5f;
yield WaitForSeconds(delay);