Ejemplo n.º 1
0
    private void Awake()
    {
        var syslang         = Application.systemLanguage;
        var isLangAvailable = false;

        TextLocalization.Init();
        foreach (var item in TextLocalization.AvailableLanguages)
        {
            if (item == syslang.ToString())
            {
                isLangAvailable = true;
                break;
            }
        }
        if (isLangAvailable)
        {
            SelectLanguage(syslang.ToString());
        }
        else
        {
            SelectLanguage("English");
        }
    }
Ejemplo n.º 2
0
 void OnEnable()
 {
     TextLocalization.Init();
     mKeys = TextLocalization.Keys;
     mKeys.Sort(delegate(string left, string right) { return(System.String.Compare(left, right, System.StringComparison.Ordinal)); });
 }