コード例 #1
0
 private void Start()
 {
     _text        = GetComponent <TextMeshProUGUI>();
     _key         = _key ?? _text.text.Trim();
     _localString = new LocalString(_localeService, _key, _formatArgs);
     _localString.TextChangedEvent += OnLocalTextChanged;
     _text.text = _localString.Value;
 }
コード例 #2
0
 private void OnLocalTextChanged(LocalString localString, string oldText)
 {
     _text.text = localString.Value;
 }