mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
Updated dark script
nya it works
This commit is contained in:
@@ -6,6 +6,7 @@ using UnityEngine.SceneManagement;
|
||||
public class BeatDark : MonoBehaviour
|
||||
{
|
||||
public int currentLevel;
|
||||
public int i = 2;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
@@ -23,11 +24,12 @@ public class BeatDark : MonoBehaviour
|
||||
|
||||
public void BeatLevel()
|
||||
{
|
||||
|
||||
if (currentLevel == 3)
|
||||
|
||||
if (i == currentLevel && i <=6)
|
||||
{
|
||||
PlayerPrefs.SetInt("CurrentLevel", 4);
|
||||
PlayerPrefs.SetInt("CurrentLevel", i+1);
|
||||
SceneManager.LoadScene("Real World");
|
||||
Debug.Log(i);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user