void OnDestroy() { //Luu lai thoi gian thoat //Debug.Log("Luu lai thoi gian " + DString.GetTimeNow()); //AudioControl.time_add_heart = (DString.GetTimeNow() + AudioControl.max_time_receive_heat); //PlayerPrefs.SetString(AudioControl.key_time_add_heart, "" + AudioControl.time_add_heart); VariableSystem.SaveData(); DataCache.SaveAchievementCache(); }
public void LanguageButton() { if (btnLanguage.value) { VariableSystem.language = "Vietnamese"; } else { VariableSystem.language = "English"; } VariableSystem.SaveData(); ChangeLanguage(); // HungBV if ("Vietnamese".Equals(VariableSystem.language)) { FactoryScenesController.languageHungBV = FactoryScenesController.languageHungBVVI; } else { FactoryScenesController.languageHungBV = FactoryScenesController.languageHungBVEN; } }
void OnDestroy() { VariableSystem.SaveData(); DataCache.SaveAchievementCache(); }