It is more of an "inconvenience" than a problem.
I often find myself creating a bunch of booleans in order to stop something from happening more than ones.
Exsample
private var ReadyToFire : boolean = true;
function Update() {
if(pulltrigger && ReadyToFire)
{
ReadyToFire = false;
fire();
resetReadyToFire();
}
}
function resetReadyToFire(){
yield WaitForSeconds(2);
ReadyToFire = true;
}
Every time I do this, I feel like there has to be a simpler way to achieve what I am after. I always end up with a ton of functions and boolean variables just because I need to delay something.