|
I have a timer script that counts down and I would like the timer to reset when the user clicks on the reset button. I am not sure which value to reset to get the timer to completely restart. Thanks in advance. `
(comments are locked)
|
|
The time is calculated from the difference of Time.time and startTime. To reset your timer, you need to make this difference be zero, i.e.
(comments are locked)
|
|
This will work for you 100%. D Let me know if its working fine.
(comments are locked)
|
|
Handle the timer vars in an Update function because OnGUI can be called several times per frame. You can set startTime = 0 if the reset button is pushed.
(comments are locked)
|
