UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"Load next level on Button click"
public class ControlScene : MonoBehaviour { int sceneIndex; void Start () { sceneIndex = SceneManager.GetActiveScene().buildIndex; } public void LoadNextLevel() { SceneManager.LoadScene (sceneIndex 1); } }