private void Awake() { if (Application.isEditor) { LNG.Init(m_debugLanguage); } else { Object.Destroy(base.gameObject); } }
public void SetLanguage(string a_lng) { LNG.Init(a_lng); PlayerPrefs.SetString("prefLang", a_lng); if (null != this.m_curLngTxt) { this.m_curLngTxt.text = a_lng; } TextLNG[] array = UnityEngine.Object.FindObjectsOfType <TextLNG>(); foreach (TextLNG textLNG in array) { if (null != textLNG) { textLNG.TranslateText(); } } }