示例#1
0
 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();
 }
示例#2
0
    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;
        }
    }
示例#3
0
 void OnDestroy()
 {
     VariableSystem.SaveData();
     DataCache.SaveAchievementCache();
 }