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