how to load a new scene in unity code example
Example 1: unity how to load up a scene
SceneManager.LoadScene("scene_01");
Example 2: how to load the next scene in unity
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);
SceneManager.LoadScene("scene_01");
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);