A countdown timer where when you click it it adds time

i need a java script where when you click a circle time adds by one and when time runs out it loads a scene

var Timer : float = 5;

function Start () {
Timer = 5;

}

function Update () {

Timer -= 1;

{
if(Timer <= 0) {

Application.LoadLevel(“SplashScreen”);

}
}

}

function OnMouseDown () {

Timer += 1;
}

right now i doesn’t show it on a GUIText or add the time!!!

PLZ HELP

In order to show a value in GUI, you have to add an OnGUI() method and add GUI. calls inside it. Since those aren’t in the script above, it won’t display anything in GUI. I’m guessing here, but OnMouseDown won’t get called if you don’t have a collider. This script should be attached to the “circle” in your scene, and it has to have a collider.