mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
Created Level Select Variable
This commit is contained in:
1 parent
b2efcd33b7
commit
9586240adb
12 files changed
+1356
-49
No files matched your search
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user