Exemplo n.º 1
0
 public string Get(LocalizationId key)
 {
     if (m_texts.ContainsKey(key))
     {
         return(m_texts[key]);
     }
     else
     {
         return("");
     }
 }
Exemplo n.º 2
0
 public void Set(LocalizationId key, string value)
 {
     if (m_texts.ContainsKey(key))
     {
         m_texts[key] = value;
     }
     else
     {
         m_texts.Add(key, value);
     }
 }
Exemplo n.º 3
0
        public string Get(LocalizationId key)
        {
            if (m_currentLocalization != null)
            {
                return(m_currentLocalization.Get(key));
            }
            else
            {
#if UNITY_EDITOR
                return(key.value);
#else
                return("");
#endif
            }
        }
Exemplo n.º 4
0
 public void UpdateText(epona.LocalizationId _key, params object[] i_args)
 {
     m_id   = _key;
     m_args = i_args;
     UpdateText();
 }
Exemplo n.º 5
0
 public void UpdateText(string _key, params object[] i_args)
 {
     m_id   = new LocalizationId(_key);
     m_args = i_args;
     UpdateText();
 }