void LoadNext() { if (isDeploying) { sceneManager.LoadScene("stage1"); } if (isTraining) { sceneManager.LoadScene("trainingRoom"); } }
void OnTriggerEnter(Collider other) { if (other.transform.tag == "Player") { sceneManager.LoadScene("continuingScene"); } }
public void Quit() { LoadNewScene sceneManager = this.GetComponent <LoadNewScene> (); Resume(); sceneManager.LoadScene("mainMenu"); }