mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
1 parent
832c866c7e
commit
4d06dd9b52
2 files changed
+3
-6
No files matched your search
@@ -8580,7 +8580,6 @@ MonoBehaviour:
|
|||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
currentLevel: 0
|
currentLevel: 0
|
||||||
i: 2
|
|
||||||
--- !u!4 &1810438011
|
--- !u!4 &1810438011
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|||||||
@@ -6,7 +6,6 @@ using UnityEngine.SceneManagement;
|
|||||||
public class BeatDark : MonoBehaviour
|
public class BeatDark : MonoBehaviour
|
||||||
{
|
{
|
||||||
public int currentLevel;
|
public int currentLevel;
|
||||||
public int i = 2;
|
|
||||||
// Start is called before the first frame update
|
// Start is called before the first frame update
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
@@ -24,12 +23,11 @@ public class BeatDark : MonoBehaviour
|
|||||||
|
|
||||||
public void BeatLevel()
|
public void BeatLevel()
|
||||||
{
|
{
|
||||||
|
|
||||||
if (i == currentLevel && i <=6)
|
if (currentLevel == 3)
|
||||||
{
|
{
|
||||||
PlayerPrefs.SetInt("CurrentLevel", i+1);
|
PlayerPrefs.SetInt("CurrentLevel", 4);
|
||||||
SceneManager.LoadScene("Real World");
|
SceneManager.LoadScene("Real World");
|
||||||
Debug.Log(i);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user