script countdown

Hello!

I need some help. In this script countdown, in my game is activated by triggers and also always disabled with trigger.
everything works fine, but when reactivated through triggers the sript countdown will not start again from 60 seconds, but always remains zero. How do I update this script so that it always start again from 60 seconds every time the script reactivated?
thank you!

My current script.

public var currentTime : int = 60;

var style : GUIStyle;    

function Start()
{
   InvokeRepeating( "CountDown", 1, 1 );
}

function CountDown()
{
   if (--currentTime == 0)
   {
       Debug.Log("Time is up my friend");
       CancelInvoke( "CountDown" );

   }

}


function OnGUI ()
{
     GUILayout.Label(currentTime.ToString(),style); 
}

You have to set the timer manually every time and it will work. On trigger enter - call the countdown script, and set the value.

For performing an operation on script disable, try

http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnDisable.html