Hi.
My game crashes as soon as i hit a button which sends me on to next scene, does anyone know what the problem could be? I’ve updated to the late version of unity3d and nothing changed.
public void SetLevel(int i)
{
Application.LoadLevel(1);
SetLevel(i);
}
public void SetLevel(int index)
{
switch(index)
{
case 1:
...
break;
case 2:
...
break;
}
...
//Set the num of checkpoints to game control.
gc.checkpointsLeft = checkpointsLeft;
}