switch to another scene unity2d code example
Example 1: how to switch scenes unity
SceneManager.LoadScene("MyScene");
Example 2: change scene unity
SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);
SceneManager.LoadScene("MyScene");
SceneManager.LoadScene (sceneBuildIndex:/*Put the number here*/);