Пример #1
0
 /// <summary>
 /// Loads the text for a specific language.
 /// </summary>
 /// <param name="langCode">The code of the language.</param>
 /// <returns>A LangText will all the data for that language.</returns>
 public LangText LoadLangText(string langCode)
 {
     return(LangText.Load(Path.Combine(Application.streamingAssetsPath, GetLangTextPath(langCode))));
 }
Пример #2
0
 /// <summary>
 /// Loads the text that is common for all languages.
 /// </summary>
 /// <returns>A LangText with all the common data.</returns>
 public LangText LoadCommonLangText()
 {
     return(LangText.Load(Path.Combine(Application.streamingAssetsPath, text_lang_common_path)));
 }