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