Is there a simple timer method that would basically do this
BeginTimer(time : float);
code...
EndTimer();
Is there a simple timer method that would basically do this
BeginTimer(time : float);
code...
EndTimer();
Hey Lab,
I’m not sure what you’re trying to accomplish… Is this kind of right?
// Hold here until the timer is done
BeginTimer(time : float);
// Once the timer expires execute this code
code...
// Deactivate/destroy the timer...
EndTimer();
or something like this?
// Initialize the timer...
BeginTimer(time : float);
code...
// Hold here until the time is up
EndTimer();
Sorry should have explained that better. Like this.
// Hold here until the timer is done
BeginTimer(time : float);
// Once the timer expires execute this code
code...
// Deactivate/destroy the timer...
EndTimer();
I think you’re looking for “yield WaitForSeconds(time);”.
–Eric
Thanks!