Skip to content

Commit

Permalink
Merge pull request #25 from Accessible-Technology-in-Sign/intro-to-ne…
Browse files Browse the repository at this point in the history
…w-words

Update AnimationManager.cs
  • Loading branch information
sreya101 authored Apr 21, 2021
2 parents d74a0be + c2c5938 commit f7d1972
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Assets/PopSignMain/Scripts/Core/AnimationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
public class AnimationManager : MonoBehaviour
{
public bool PlayOnEnable = true;
public int PRACTICE_LEVEL_INTERVAL = 5;
System.Collections.Generic.Dictionary<string, string> parameters;

void OnEnable()
Expand Down Expand Up @@ -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")
{
Expand Down

0 comments on commit f7d1972

Please sign in to comment.