public void SelectScene() { if (GetComponentInChildren <ScoreDisplay>().GetSelectedlevel() != "") { ActiveSceneManager.UnloadScene(currScene); ActiveSceneManager.LoadScene(GetComponentInChildren <ScoreDisplay>().GetSelectedlevel(), false); } }
//Method to be initiate a scene change public void SelectScene(string val) { ActiveSceneManager.UnloadScene(currScene); ActiveSceneManager.LoadScene(val, false); }