Exemplo n.º 1
0
 private void Start()
 {
     if (PlayerPrefs.HasKey("Lvl" + lvl + "stars"))
     {
         starsController.Set(PlayerPrefs.GetInt("Lvl" + lvl + "stars"));
     }
     else
     {
         PlayerPrefs.SetInt("Lvl" + lvl + "stars", 0);
         starsController.Set(0);
     }
 }
Exemplo n.º 2
0
    public void Open()
    {
        Level l = Level.choosen;

        lname.text = "<color=#CF0000>Stage 1-" + l.lvl + "</color>\n" + l.lname;
        starsController.Set(l.stars);
        bg.SetActive(true);
        gameObject.SetActive(true);
        levelName.SetActive(false);
        backButton.SetActive(false);
    }