diff --git a/Assets/Record/GoToReplayButton.cs b/Assets/Record/GoToReplayButton.cs index ade0a55310181b0433bc506bbb8011cb66ed2509..e93680cd79d5e19f445e31e05e4e03a3fc7f5fbd 100644 --- a/Assets/Record/GoToReplayButton.cs +++ b/Assets/Record/GoToReplayButton.cs @@ -1,11 +1,12 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; +using UnityEngine.SceneManagement; public class GoToReplayButton : MonoBehaviour { public void GoToReplayScene() { - Application.LoadLevel ("Replay"); + SceneManager.LoadScene ("Replay"); } } diff --git a/Assets/Replay/GoToRecordingButton.cs b/Assets/Replay/GoToRecordingButton.cs index 470dcaa29fc52047582e1328d8e55a115aac9c3b..788acb19dc68605667d3893384f1a144e2c9a43a 100644 --- a/Assets/Replay/GoToRecordingButton.cs +++ b/Assets/Replay/GoToRecordingButton.cs @@ -1,11 +1,12 @@ using System.Collections; using System.Collections.Generic; using UnityEngine; +using UnityEngine.SceneManagement; public class GoToRecordingButton : MonoBehaviour { public void GoToRecordingScene() { - Application.LoadLevel ("Record"); + SceneManager.LoadScene ("Record"); } }