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