yes I changed it to a few different numbers to test but they all quit after the game loads , it something to do with this part of the script , its is not wait until 0 to do the next part of the script .
the script runs but does the quit straight away , i tested it with a print statement and it prints log and it put it up straight away .
if(timer <= 0)
{
timer = 0;
Application.Quit();
}
PS it a java script not C+
I will try we loadlevel to try to get that to work