void checkActualItem() { if (UserDataScript.isItem(objectName + index)) { BuyButton.interactable = false; BuyButton.GetComponentInChildren <Text>().text = "EN POSESIÓN"; BuyButton.GetComponentInChildren <Text>().color = Color.white; if (UserDataScript.getInfo(objectName).Equals(objectName + index)) { ActiveButton.interactable = false; ActiveButton.GetComponentInChildren <Text>().text = "ACTIVADO"; } else { ActiveButton.interactable = true; ActiveButton.GetComponentInChildren <Text>().text = "ACTIVAR"; } } else { if (UserDataScript.getCoins() < 100) { BuyButton.interactable = false; BuyButton.GetComponentInChildren <Text>().text = "COMPRAR|100c"; BuyButton.GetComponentInChildren <Text>().color = Color.red; } else { BuyButton.interactable = true; BuyButton.GetComponentInChildren <Text>().text = "COMPRAR|100c"; BuyButton.GetComponentInChildren <Text>().color = Color.white; } ActiveButton.interactable = false; ActiveButton.GetComponentInChildren <Text>().text = "ACTIVAR"; } }