void OnEnable()
    {
        if (m_Text == null)
        {
            m_Text = GetComponent <Text>();
        }

        m_Text.text = Localizes.GetString(id);
    }
Esempio n. 2
0
    void OnEnable()
    {
        if (m_Text == null)
        {
            m_Text = GetComponent <TMP_Text>();
        }

        m_Text.text = (!hasParam) ? Localizes.GetString(id) : string.Format(Localizes.GetString(id), param);
    }
 public void UpdateText()
 {
     m_Text.text = (!hasParam) ? Localizes.GetString(localizeKey) : string.Format(Localizes.GetString(localizeKey), param);
 }