diff --git a/Assets/PopSignMain/Scripts/Core/AnimationManager.cs b/Assets/PopSignMain/Scripts/Core/AnimationManager.cs index 3fbf6f0b..8ed1de51 100644 --- a/Assets/PopSignMain/Scripts/Core/AnimationManager.cs +++ b/Assets/PopSignMain/Scripts/Core/AnimationManager.cs @@ -9,6 +9,7 @@ public class AnimationManager : MonoBehaviour { public bool PlayOnEnable = true; + public int PRACTICE_LEVEL_INTERVAL = 5; System.Collections.Generic.Dictionary parameters; void OnEnable() @@ -135,8 +136,12 @@ public void Play() { PlayerPrefs.SetInt("OpenLevel", PlayerPrefs.GetInt( "OpenLevel" ) + 1); PlayerPrefs.Save(); - SceneManager.LoadScene("game"); - VideoManager.resetVideoManager (); + if (PlayerPrefs.GetInt("OpenLevel") % PRACTICE_LEVEL_INTERVAL == 0) { + SceneManager.LoadScene("practice"); + } else { + SceneManager.LoadScene("game"); + VideoManager.resetVideoManager (); + } } else if( gameObject.name == "TryAgain") {