UnityEngine.Application.LoadLevel is obsolete Use SceneManager.LoadScene

add using UnityEngine.SceneManagement; to the top of your script than use SceneManager.LoadScene(string scenePath) In JaveScript Add import Unity.SceneManagement After that you can replace Application.LoadLevel() with SceneManager.LoadScene()   change: UnityEngine.SceneManagement.SceneManager.LoadScene(“Application.loadedLevel”); to: SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex); or SceneManager.LoadScene(“Continue”);   SceneManagement instead of Application Where previously we would use Application.LoadLevel to load a new level. In Unity 5 we now need to use SceneManager.LoadScene. Some […]