Esempio n. 1
0
    public string GetLanguage(int languageType, int languageId)
    {
        LanguageConfig lc = LanguageConfig.GetConfig(languageId);

        if (lc == null)
        {
            return("");
        }
        Type t = typeof(LanguageConfig);

        return((string)t.GetField(LanguageTypeConfig.GetConfig(languageType).name).GetValue(lc));
    }
Esempio n. 2
0
    private void OnChange(lib.Event e = null)
    {
        Select(zh_cn, false);
        Select(en_us, false);
        Select(zh_tw, false);
        Select(ja_jp, false);
        Select(ko_kr, false);
        Select(de_de, false);
        Select(es_la, false);
        switch (LanguageTypeConfig.GetConfig(GameVO.Instance.language.value).name)
        {
        case "zh_cn":
            Select(zh_cn, true);
            break;

        case "en_us":
            Select(en_us, true);
            break;

        case "zh_tw":
            Select(zh_tw, true);
            break;

        case "ja_jp":
            Select(ja_jp, true);
            break;

        case "ko_kr":
            Select(ko_kr, true);
            break;

        case "de_de":
            Select(de_de, true);
            break;

        case "es_la":
            Select(es_la, true);
            break;
        }
    }