Пример #1
0
        private void Localize()
        {
            var dropdown = GetComponent <Dropdown>();

            for (var i = 0; i < LocalizationKeys.Length; i++)
            {
                dropdown.options[i].text = LocalizationManager.Localize(LocalizationKeys[i]);
            }

            if (dropdown.value < LocalizationKeys.Length)
            {
                dropdown.captionText.text = LocalizationManager.Localize(LocalizationKeys[dropdown.value]);
            }
        }
Пример #2
0
 private void Localize()
 {
     GetComponent <Text>().text = LocalizationManager.Localize(LocalizationKey);
 }