using TMPro; using UnityEngine; using Balancy; [RequireComponent(typeof(TMP_Text))] public class LocalizationTextMeshPro : LocalizationUI { private TMP_Text _component; private void Awake() { _component = GetComponent(); SetTextValue(); } protected override void OnLocalizationChanged(string localizationCode) { SetTextValue(); } void SetTextValue() { if (_component != null) _component.text = GetLocalization(); } }