public void OnEnable()
 {
     languageDict    = (LanguageDict)target;
     languageDictSO  = new SerializedObject(languageDict);
     languageStuffSP = languageDictSO.FindProperty("Languages");
     cnt             = languageDictSO.FindProperty(listSize);
 }
Example #2
0
    private LanguageManager()
    {
        foreach (KeyValuePair <int, string> kv in LanguageIndices)
        {
            Languages.Add(kv.Value);
            LanguageDescs.Add(LanguagesDesc[LanguagesAbbrDict[kv.Value]]);
            LanguagesShorts.Add(LanguagesAbbrDict[kv.Value]);
        }

        foreach (string ls in LanguagesShorts)
        {
            LanguageDict.Add(ls, new Dictionary <string, string>());
        }

        LanguageManager_Common.GetText            = GetText;
        LanguageManager_Common.GetCurrentLanguage = GetCurrentLanguage;

        LoadLanguageDictJson();
    }