public void ChangeToScene(string sceneToChangeTo) { if (sceneToChangeTo == "MainMenu") { DisplayTime.resetTime(); } if (sceneToChangeTo == "prevScene") { Application.LoadLevel(getPrevLevel()); } else { Application.LoadLevel(sceneToChangeTo); setPrevLevel(sceneToChangeTo); } }
void Start() { DisplayTime.resetTime(); }