public void ItemDescricao(string itemClicked) { DeNome.SetActive(true); Detalhes.SetActive(true); if (itemClicked == "item1") { DeNome.GetComponent <TextMesh> ().text = "Adrenalina"; Detalhes.GetComponent <TextMesh> ().text = "Energia(+50)" + "\n" + "Toxina(+5)"; } else if (itemClicked == "item2") { DeNome.GetComponent <TextMesh> ().text = "Anabolizante"; Detalhes.GetComponent <TextMesh> ().text = "Resistencia(+3)" + "\n" + "Forca(+1)" + "\n" + "Toxina(+40)"; } else if (itemClicked == "item3") { DeNome.GetComponent <TextMesh> ().text = "Analgesico"; Detalhes.GetComponent <TextMesh> ().text = "Vida(+5)"; } else if (itemClicked == "item4") { DeNome.GetComponent <TextMesh> ().text = "Anti-Toxina"; Detalhes.GetComponent <TextMesh> ().text = "Toxina(-20)"; } else if (itemClicked == "item5") { DeNome.GetComponent <TextMesh> ().text = "Endorfina"; Detalhes.GetComponent <TextMesh> ().text = "Vida(+20)" + "\n" + "Toxina(+10)"; } else if (itemClicked == "item6") { DeNome.GetComponent <TextMesh> ().text = "Proteina" + "\n" + "Liquida"; Detalhes.GetComponent <TextMesh> ().text = "Forca(+5)" + "\n" + "Constituicao(+1)" + "\n" + "Toxina(+70)"; } }
// Use this for initialization void Start() { ListGameobjects(); GetCurrentMoney(); DeNome.SetActive(false); Detalhes.SetActive(false); }
// Use this for initialization void Start() { ListGameobjects(); StartItens(); UpdateItens(); DeNome.SetActive(false); Detalhes.SetActive(false); }