Hi guys, I am new to unity, and I am currently trying to learn code via some Udemey videos. I am running into some deprecated code on line 12. I know that I need to update line 12 to SceneManager.LoadScene, however I am very new to programming and don’t have a strong enough understanding to fix it beyond that. Any help would be greatly appreciated. Thanks in advance.
public class LevelManager : MonoBehaviour {
public void LoadLevel(string name) {
Debug.Log("level load requested for: " + name);
SceneManager.LoadScene(name);
}
public void QuitRequest() {
Debug.Log("I want to quit!: ");
Application.Quit();
}
public LoadNextLevel() {
Application.LoadLevel(Application.loadedLevel +1);
}
}