yield what it really does?

Hi guys,

sorry this might be a silly question and i tried to get my mind clear on it reading the manual but still I don’t get what the YIELD statement is about and what the CoRoutine thing is about too… can anyone explain that to me…very much appreciated!

Thanks,
GC.

yield return new WaitForSeconds(1) will wait for 1 second before any code under it is called. Its useful for timing things. yield return null will wait a frame then call the code underneath it.