how to move to next scene in unity code example
Example 1: move to another scene unity
using UnityEngine.SceneManagement;
void Start(){
SceneManager.LoadScene(0/* the scene number*/);
}
Example 2: how to load the next scene in unity
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1);