mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
35 lines
707 B
C#
35 lines
707 B
C#
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");
|
|
}
|
|
}
|
|
}
|