
0
Is that possible to stop all the bolt timers for the "On Timer Elapsed" event?
For example, when user click the pause menu, and I need bolt stop counting down the timers.
Thanks.
Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Customer support service by UserEcho
Not yet, but wait for the next update. Going to be a real beauty in this regard. In the meantime, you can try something like this:
Set our events to start and stop it. The timer will be in a state unit for each stopping and starting. this can be extended to just pause as well if you like and not actually restart, based on a bool switch with your user input.
Then the timer inside can look something like this:
I didn't do it here because I already had made these pics before you asked about pausing, but you'd just put the bool as the first thing in update here. before setting the timer current time.
Someone else uses state units! Huzzah! Perfect use case.