it's hard for me to think of a proper name for this problem. if I get it, then I'll change the title,
the thing is that if I use this function
var delay = 0.3;
function Delay(bool:boolean){
yield WaitForSeconds(delay);
bool = !bool;
}
on some boolean, to turn it off over time of "delay" seconds,
I am not really changing the boolean that I passed. I'm just changing the temporal "bool" variable declared in here.
How to change the value that was passed to that function?