예제 #1
0
    public void ChangeToScene(string sceneToChangeTo)
    {
        if (sceneToChangeTo == "MainMenu")
        {
            DisplayTime.resetTime();
        }

        if (sceneToChangeTo == "prevScene")
        {
            Application.LoadLevel(getPrevLevel());
        }
        else
        {
            Application.LoadLevel(sceneToChangeTo);
            setPrevLevel(sceneToChangeTo);
        }
    }
예제 #2
0
 void Start()
 {
     DisplayTime.resetTime();
 }