// Update is called once per frame void Update() { if (PlayerPrefsController.GetBestScore() >= 25 && PlayerPrefsController.GetPoints25() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock25Points(); } else if (PlayerPrefsController.GetBestScore() >= 50 && PlayerPrefsController.GetPoints50() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock50Points(); } else if (PlayerPrefsController.GetBestScore() >= 100 && PlayerPrefsController.GetPoints100() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock100Points(); } else if (PlayerPrefsController.GetBestScore() >= 200 && PlayerPrefsController.GetPoints200() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock200Points(); } else if (PlayerPrefsController.GetBestScore() >= 500 && PlayerPrefsController.GetPoints500() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock500Points(); } else if (PlayerPrefsController.GetCharacters().Length >= 3 && PlayerPrefsController.GetCharacters2() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock2Characters(); } else if (PlayerPrefsController.GetCharacters().Length >= 6 && PlayerPrefsController.GetCharacters5() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock5Characters(); } else if (PlayerPrefsController.GetCharacters().Length >= 11 && PlayerPrefsController.GetCharacters10() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock10Characters(); } else if (PlayerPrefsController.GetCharacters().Length >= 21 && PlayerPrefsController.GetCharacters20() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock20Characters(); } else if (PlayerPrefsController.GetCharacters().Length >= 31 && PlayerPrefsController.GetCharacters30() == false && Application.internetReachability != NetworkReachability.NotReachable) { Unlock30Characters(); } }