示例#1
0
        public static void Prefix()
        {
            var result = PlayerPrefs.GetString(TranslationManager.PlayerPrefsCode);

            if (!String.IsNullOrEmpty(result))
            {
                TranslationManager.SelectedLanguage = result;
                TranslationManager.LoadCurrentLanguage();
            }
        }
 public static void Prefix()
 {
     if (!TranslationManager.IsInitialized)
     {
         TranslationManager.LoadCurrentLanguage();
     }
     else
     {
         if (TranslationManager.CurrentLanguage == null)
         {
             PlayerPrefs.DeleteKey(TranslationManager.PlayerPrefsCode);
         }
         else
         {
             PlayerPrefs.SetString(TranslationManager.PlayerPrefsCode, TranslationManager.CurrentLanguage.Settings.LanguageDisplayName);
         }
         PlayerPrefs.Save();
     }
 }
 public static void Prefix(GameOption __instance)
 {
     TranslationManager.LoadCurrentLanguage();
 }