コード例 #1
0
        public void OnLocalization(LocalizationService localization)
        {
            if (localization == null)
                return;

            var label = GetComponent<Text>();

            GetComponent<Text>().text = localization.GetFromFile(File, Key, label.text);
        }
コード例 #2
0
        private void OnLocalization(LocalizationService localization)
        {
            if (localization == null)
                return;

            var label = GetComponent<TextBinder>();

            var data = localization.GetFromFile(File, Key);

            label.FormatString = data;
            label.OnBindingRefresh();
        }
コード例 #3
0
        private void OnLocalization(LocalizationService localization)
        {
            if (localization == null)
            {
                return;
            }

            var label = GetComponent <TextBinder>();

            var data = localization.GetFromFile(File, Key);

            label.FormatString = data;
            label.OnBindingRefresh();
        }