title: I'm getting a warning message on Application.loadedLevelName to use SceneManager but SceneManager is not exist. How can i fix it?
body: <p>This is the code:</p>
  
  <pre><code>void Restart()
    {
      guiTools.ClearCache();
      Application.LoadLevel(Application.loadedLevelName);
    }
  </code></pre>
  
  <p>The warning message:</p>
  
  <blockquote>
    <p>Scripts\Main.cs(27,27): Warning CS0618:
    'UnityEngine.Application.loadedLevelName' is obsolete: 'Use
    SceneManager to determine what scenes have been loaded' (CS0618)
    (Assembly-CSharp)</p>
  </blockquote>