This is an image of the errors This is the script
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManager; public class LevelComplete : MonoBehaviour { public void LoadNextLevel () { SceneManager.LoadScene(SceneManager.GetActiveScene().BuildIndex + 1); } } Please help me with the errors
I tried to debug the error by checking the script and UI animations that connect to the event that changes the scene. I also tried using SceneManager.LoadScene (name); but it did not work.