Hello. I have a couple of functions set up with a yield to wait for seconds in each. After the yield, I have some other instructions of course but, for some reason the 2nd set of instructions will not execute- or in the other function it will completely not execute.
When I take the yield out of the functions, they work perfectly?
The first function is started via InvokeRepeating. With yield, it will completely not work. The yield is no way longer then its repeat rate.
The second is in an Update function and is called on a GetButton Down command. With yield, it does execute, but I also have a
for(var foos in fooObjects){
foos.GetComponent.ladida
}
code in it as well, this part will not work with yield in the function.
Why do they malfunction with yields? I do need to have yield in them.
please help, and thank you.