// menshikh: // Implemented specially for use in inspector editor scripts to avoid necessity of LanguageManager instance. public static SmartCultureInfoCollection GetAvailableLanguageCultures() { TextAsset availableCulturesXML = Resources.Load(LanguageRuntimeData.AvailableCulturesFilePath()) as TextAsset; if (availableCulturesXML == null) { Debug.LogError("Could not load available cultures! No such file!"); return(null); } return(SmartCultureInfoCollection.Deserialize(availableCulturesXML)); }
bool LoadAvailableCultures() { TextAsset availableCulturesXML = Resources.Load(LanguageRuntimeData.AvailableCulturesFilePath()) as TextAsset; if(availableCulturesXML == null) { Debug.LogError("Could not load available languages! No such file!"); return false; } availableLanguages = SmartCultureInfoCollection.Deserialize(availableCulturesXML); return true; }