Example #1
0
 void LoadNext()
 {
     if (isDeploying)
     {
         sceneManager.LoadScene("stage1");
     }
     if (isTraining)
     {
         sceneManager.LoadScene("trainingRoom");
     }
 }
Example #2
0
 void OnTriggerEnter(Collider other)
 {
     if (other.transform.tag == "Player")
     {
         sceneManager.LoadScene("continuingScene");
     }
 }
Example #3
0
    public void Quit()
    {
        LoadNewScene sceneManager = this.GetComponent <LoadNewScene> ();

        Resume();
        sceneManager.LoadScene("mainMenu");
    }