Exemple #1
0
        public override void OnEnter()
        {
            string path = assetPath.Value + (appendLanguage ? "_" + Lang.selectedLanguage.ToString() : "");

            Lang.AddDictionary(aliasName.Value, path);
            Finish();
        }
Exemple #2
0
 void Awake()
 {
     foreach (LangDictionary ld in dictionaries)
     {
         Lang.AddDictionary(ld.aliasName, ld.assetPath);
     }
     if (langCode != Lang.LanguageCode.Unassigned && Lang.selectedLanguage == Lang.LanguageCode.Unassigned)
     {
         Lang.selectedLanguage = langCode;
     }
 }