I am having a problem with my scene changing script. My game is almost finished except for a problem which i cannot seem to solve. My game has a Main Menu scene which holds a terrain and a canvas with buttons. The “Start Game” button references a script on the button itself, and calls a function upon click:
function ChangeScene ()
{
Application.LoadLevel(“GOODSECOND”);
}
Whenever I click it is supposed to load the second level. But it always results in reloading the main menu level. I tried using LoadLevel(1) as well. This appears to be happening only with the level 1 & 2. Setting LoadLevel to 3 or 4 works fine. This made me believe it was the other scenes fault. I tried copying everything to new scenes in case they were corrupted but no luck in that. This also happens when you try to load level 2 from level 1, it load level 0.
Has anyone experienced this before? Can someone please help me with it? It is holding back the game from being finished.