diff --git a/Assets/Fungus/Flowchart/Scripts/SceneLoader.cs b/Assets/Fungus/Flowchart/Scripts/SceneLoader.cs index e0f982f3..08403788 100644 --- a/Assets/Fungus/Flowchart/Scripts/SceneLoader.cs +++ b/Assets/Fungus/Flowchart/Scripts/SceneLoader.cs @@ -1,4 +1,5 @@ using UnityEngine; +using UnityEngine.SceneManagement; using System.Collections; using System; @@ -70,7 +71,11 @@ namespace Fungus } // Load the scene (happens at end of frame) + #if UNITY_5_0 || UNITY_5_1 || UNITY_5_2 Application.LoadLevel(sceneToLoad); + #else + SceneManager.LoadScene(sceneToLoad); + #endif yield return new WaitForEndOfFrame();