Hey! So i need some help with the function WaitForSeconds, how does it work? If i do somthing like this:
yield return new WaitForSeconds(1.5F);
//waits 1.5 seconds
debug.log("1");
yield return new WaitforSeconds(1.5F);
//waits 1.5 seconds
debug.log("2");
//both these functions run at the same time?
So does this mean waitforseconds waits for the code below it until it intercepts another waitforseconds?
Sorry if this doesnt make since, hopefully youll understand