unity change to scene code example
Example 1: change scene unity
SceneManager.LoadScene("name of scene", LoadSceneMode.Single);
Example 2: change scene unity
SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);
SceneManager.LoadScene("name of scene", LoadSceneMode.Single);
SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);