This commit is contained in:
Zoe J committed 2022-02-25 08:32:04 -06:00
1 parent 9233999432
commit 4360d8b2b8
37 files changed
+6587 -775

No files matched your search

+67 -2
View File
@@ -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);
}
}