diff --git a/Episode 14/GameUI.cs b/Episode 14/GameUI.cs index 6da0c3a..49e2bba 100644 --- a/Episode 14/GameUI.cs +++ b/Episode 14/GameUI.cs @@ -1,6 +1,7 @@ using UnityEngine; using UnityEngine.UI; using System.Collections; +using UnityEngine.SceneManagement; public class GameUI : MonoBehaviour { @@ -29,6 +30,6 @@ IEnumerator Fade(Color from, Color to, float time) { // UI Input public void StartNewGame() { - Application.LoadLevel ("Game"); + SceneManager.LoadScene ("Game"); } }