Hi, I hope I don't get marked down for this, but I don't know how to reset the count-down-timer found here:
http://answers.unity3d.com/questions/4504/count-down-timer
Basically, I am redeclaring the varaibles to public static, and referencing them in another script in an attempt to reset the timer back to 60:00.
Hi, if you are using the first script on that link, this works as I just tested it...
replace this bit:
function Awake()
{
startTime = Time.time;
}
with this:
function Awake()
{
Reset();
}
function Reset()
{
startTime = Time.time;
}
then simply call Reset() when you want to reset.
For instance adding the Reset in the script like this:
if (restSeconds == 0)
{
print ("Time is Over");
//do stuff here
Reset();
}
will make the timer start over as soon as it is finished.