void OnEnable() { if (m_Text == null) { m_Text = GetComponent <TMP_Text>(); } m_Text.text = (!hasParam) ? Localizes.GetString(id) : string.Format(Localizes.GetString(id), param); }
void OnEnable() { if (m_Text == null) { m_Text = GetComponent <Text>(); } m_Text.text = Localizes.GetString(id); }
void OnEnable() { if (m_Image == null) { m_Image = GetComponent <Image>(); } string language = Localizes.CurrentLanguage(); switch (language) { case SupportedLanguage.Vietnamese: m_Image.sprite = m_VietnameseSprite; break; case SupportedLanguage.English: m_Image.sprite = m_EnglishSprite; break; } m_Image.SetNativeSize(); }
public void UpdateText() { m_Text.text = (!hasParam) ? Localizes.GetString(localizeKey) : string.Format(Localizes.GetString(localizeKey), param); }