diff --git a/Assets/Scenes/Game Scenes/Dark Level.unity b/Assets/Scenes/Game Scenes/Dark Level.unity index e34077c..4cb5efe 100644 --- a/Assets/Scenes/Game Scenes/Dark Level.unity +++ b/Assets/Scenes/Game Scenes/Dark Level.unity @@ -8580,7 +8580,6 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: currentLevel: 0 - i: 2 --- !u!4 &1810438011 Transform: m_ObjectHideFlags: 0 diff --git a/Assets/Scripts/BeatDark.cs b/Assets/Scripts/BeatDark.cs index 26e5b18..a14578b 100644 --- a/Assets/Scripts/BeatDark.cs +++ b/Assets/Scripts/BeatDark.cs @@ -6,7 +6,6 @@ using UnityEngine.SceneManagement; public class BeatDark : MonoBehaviour { public int currentLevel; - public int i = 2; // Start is called before the first frame update void Start() { @@ -24,12 +23,11 @@ public class BeatDark : MonoBehaviour public void BeatLevel() { - - if (i == currentLevel && i <=6) + + if (currentLevel == 3) { - PlayerPrefs.SetInt("CurrentLevel", i+1); + PlayerPrefs.SetInt("CurrentLevel", 4); SceneManager.LoadScene("Real World"); - Debug.Log(i); } else {