示例#1
0
 void Start()
 {
     BolhaExtra1.SetActive(false);
     BolhaExtra2.SetActive(false);
     BolhaExtra3.SetActive(false);
     BolhaExtra4.SetActive(false);
 }
示例#2
0
 void Update()
 {
     if (PlayerPrefs.HasKey("Dificuldade"))
     {
         aux = PlayerPrefs.GetInt("Dificuldade");
         if (aux == 1)
         {
             BolhaExtra1.SetActive(true);
         }
         if (aux == 2)
         {
             BolhaExtra2.SetActive(true);
         }
         if (aux >= 3)
         {
             BolhaExtra3.SetActive(true);
         }
     }
 }