In my script i have a boolean that becomes true when a function is called (Round Over). Round over function is only called once and it restarts the scene. My problem is though that roundOver boolean doesnt get time to become true (i printed in the console) and stays false because it restarts the scene straight after. How do i get roundOver to become true at least once so i can do something in the Update() while roundOver is true.
public void Start(){
roundOver = false;
}
public static void RoundOver(){
if(curRound >= roundCount)
{
GameOver();
}else{
print ("round over");
roundOver = true;
curRound++;
Application.LoadLevel(Application.loadedLevel);
}
}