Esempio n. 1
0
 void OnClick()
 {
     CheckUnlock.LookForUnlock();
     if (CheckUnlock.somethingToUnlock == true)
     {
         newcontentmessage.SetActive(true);
         PlayerPrefs.SetString("New Object Unlocked", CheckUnlock.unlockedItem);
         PlayerPrefs.Save();
     }
 }
Esempio n. 2
0
 void Start()
 {
     if (SceneManager.GetActiveScene().ToString() == "Weekly Summary" && LiteProControl.appVersion == "lite")
     {
         CheckUnlock.LookForUnlock();
         if (CheckUnlock.somethingToUnlock == true)
         {
             newcontentmessage.SetActive(true);
             PlayerPrefs.SetString("New Object Unlocked", CheckUnlock.unlockedItem);
             PlayerPrefs.Save();
         }
     }
 }