From f555401f97858a162fb12e6969efe3b44ac53bbf Mon Sep 17 00:00:00 2001 From: Diego J Date: Mon, 28 Dec 2015 10:29:39 -0500 Subject: [PATCH] Application.LoadScene() is deprecated --- Episode 14/GameUI.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"); } }