Revert "Updated dark script"

This reverts commit 832c866c7e.
This commit is contained in:
Unknown
2022-02-27 00:43:22 -06:00
committed by Zoe J
parent 832c866c7e
commit 4d06dd9b52
2 changed files with 3 additions and 6 deletions
@@ -8580,7 +8580,6 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
currentLevel: 0
i: 2
--- !u!4 &1810438011
Transform:
m_ObjectHideFlags: 0
+3 -5
View File
@@ -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
{