Created Level Select Variable

This commit is contained in:
Zoe J committed 2022-02-24 22:31:43 -06:00
1 parent b2efcd33b7
commit 9586240adb
12 files changed
+1356 -49

No files matched your search

+34
View File
@@ -0,0 +1,34 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class WorldScreenController : MonoBehaviour
{
public int currentLevel;
public GameObject Fuki;
// Start is called before the first frame update
void Start()
{
currentLevel = PlayerPrefs.GetInt("CurrentLevel");
if (currentLevel >= 2)
{
Fuki.SetActive(true);
}
}
// Update is called once per frame
void Update()
{
}
public void Level1()
{
if (currentLevel >= 1)
{
SceneManager.LoadScene("Crowds Level");
}
}
}