using UnityEngine;
using UnityEngine.SceneManagement;
public class ExampleScript: MonoBehaviour
{
public string Scene; // Put int the Name of the scene you want to load :)
// Active when the game/app starts :)
void Start()
{
SceneManager.LoadScene(Scene);
}
}
using UnityEngine;
using UnityEngine.GameManagement;
public class NextLevelLoader : MonoBehaviour
public void LoadScene ()
{
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
}