////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Start() { GameObject go = GameObject.Find("IABManager"); textPrice = transform.GetChild(0).GetComponent<Text>(); if(go!=null){ iabManager = go.GetComponent<IABManager>(); }else{ Debug.Log("ERROR: No se encuentra el objeto IABManager"); } if(iabManager.dictPrices.ContainsKey(item)){ textPrice.text = iabManager.dictPrices[item]; }else if(Application.platform!=RuntimePlatform.WindowsEditor && Application.platform!=RuntimePlatform.OSXEditor){ Debug.Log("No se encuentra el item: "+item+" en el diccionario."); } }
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// void Awake() { instance = this; }