using UnityEngine; using UnityEngine.UI; using System.Collections; public class LocalizationTextField : MonoBehaviour { //Connections public InputField TextComp; //Attributes public string LocID = ""; //Stats //------------------------------------------------------------------------------------ void Start () { Invoke("LoadLanguage", Random.Range(0.1f, 0.2f)); } //------------------------------------------------------------------------------------- void LoadLanguage() { if (TextComp == null) { TextComp = GetComponent(); } TextComp.text = LocalizationManager.GetText(LocID); } //************************************************************************************* }