using UnityEngine; namespace Nxr.Internal { public class LocalizationText : MonoBehaviour { public string key = " "; void Start() { GetComponent().text = LocalizationManager.GetInstance.GetValue(key); } public void UpdateKey(string keyValue) { this.key = keyValue; GetComponent().text = LocalizationManager.GetInstance.GetValue(key); } public void refresh(string language) { GetComponent().text = LocalizationManager.GetInstance.GetValue(key, language); } } }