Quote:
we are using while loops for repating same task in all frames(while(1) ... wait(1)) in Unity, there are functions that are automatically called every frame, so you are already writing the inside of the while.
Well there's more to it than that. The special thing about wait(1) in A7 is that function execution continues from that spot the next frame, with all local variables preserved.

Assuming Unity lets you extend its entity objects by adding your own variables to the objects themselves (which I'm sure it does, but I just don't know), this wouldn't be an issue anyway, I guess.

Jibb


Formerly known as JulzMighty.
I made KarBOOM!