public override void OnEnter() { string path = assetPath.Value + (appendLanguage ? "_" + Lang.selectedLanguage.ToString() : ""); Lang.AddDictionary(aliasName.Value, path); Finish(); }
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; } }