mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-11-11 04:22:40 +00:00
Nya
This commit is contained in:
1 parent
9233999432
commit
4360d8b2b8
37 files changed
+6587
-775
No files matched your search
@@ -7,11 +7,13 @@ public class WorldScreenController : MonoBehaviour
|
||||
{
|
||||
public int currentLevel;
|
||||
public GameObject Fuki;
|
||||
public GameObject page1;
|
||||
public GameObject page2;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
currentLevel = PlayerPrefs.GetInt("CurrentLevel");
|
||||
currentLevel = PlayerPrefs.GetInt("CurrentLevel");
|
||||
if (currentLevel >= 2)
|
||||
{
|
||||
Fuki.SetActive(true);
|
||||
@@ -21,7 +23,7 @@ public class WorldScreenController : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void Level1()
|
||||
@@ -31,4 +33,67 @@ public class WorldScreenController : MonoBehaviour
|
||||
SceneManager.LoadScene("Crowds Level");
|
||||
}
|
||||
}
|
||||
|
||||
public void Level2()
|
||||
{
|
||||
if (currentLevel >= 2)
|
||||
{
|
||||
SceneManager.LoadScene("Crowds Level");
|
||||
}
|
||||
}
|
||||
|
||||
public void Level3()
|
||||
{
|
||||
if (currentLevel >= 3)
|
||||
{
|
||||
SceneManager.LoadScene("Crowds Level");
|
||||
}
|
||||
}
|
||||
|
||||
public void Level4()
|
||||
{
|
||||
if (currentLevel >= 4)
|
||||
{
|
||||
SceneManager.LoadScene("Crowds Level");
|
||||
}
|
||||
}
|
||||
|
||||
public void Level5()
|
||||
{
|
||||
if (currentLevel >= 5)
|
||||
{
|
||||
SceneManager.LoadScene("Crowds Level");
|
||||
}
|
||||
}
|
||||
|
||||
public void Level6()
|
||||
{
|
||||
if (currentLevel >= 6)
|
||||
{
|
||||
SceneManager.LoadScene("Crowds Level");
|
||||
}
|
||||
}
|
||||
|
||||
public void NextPage()
|
||||
{
|
||||
page2.SetActive(true);
|
||||
page1.SetActive(false);
|
||||
}
|
||||
|
||||
public void PreviousPage()
|
||||
{
|
||||
page1.SetActive(true);
|
||||
page2.SetActive(false);
|
||||
}
|
||||
|
||||
public void ClosePage()
|
||||
{
|
||||
page2.SetActive(false);
|
||||
page1.SetActive(false);
|
||||
}
|
||||
|
||||
public void OpenBook()
|
||||
{
|
||||
page1.SetActive(true);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user