Пример #1
0
 public void ItemDescricao(string itemClicked)
 {
     DeNomeV.SetActive(true);
     //DetalhesV.SetActive(true);
     if (itemClicked == "item1")
     {
         DeNomeV.GetComponent <TextMesh> ().text = "Bronze";
         //DetalhesV.GetComponent<TextMesh> ().text = "Energia(+50)"+"\n"+"Toxina(+5)";
     }
     else if (itemClicked == "item2")
     {
         DeNomeV.GetComponent <TextMesh> ().text = "Ferro";
         //DetalhesV.GetComponent<TextMesh> ().text = "Resistencia(+3)"+"\n"+"Forca(+1)"+"\n"+"Toxina(+40)";
     }
     else if (itemClicked == "item3")
     {
         DeNomeV.GetComponent <TextMesh> ().text = "Obsidiana";
         //DetalhesV.GetComponent<TextMesh> ().text = "Vida(+5)";
     }
     else if (itemClicked == "item4")
     {
         DeNomeV.GetComponent <TextMesh> ().text = "Chumbo";
         //DetalhesV.GetComponent<TextMesh> ().text = "Toxina(-20)";
     }
     else if (itemClicked == "item5")
     {
         DeNomeV.GetComponent <TextMesh> ().text = "Ouro";
         //DetalhesV.GetComponent<TextMesh> ().text = "Resistencia(+20)"+"\n"+"Toxina(+15)";
     }
     else if (itemClicked == "item6")
     {
         DeNomeV.GetComponent <TextMesh> ().text = "Uranio";
         //DetalhesV.GetComponent<TextMesh> ().text = "Forca(+5)"+"\n"+"Constituicao(+1)"+"\n"+"Toxina(+70)";
     }
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     ListGameobjects();
     GetCurrentMoney();
     DeNomeV.SetActive(false);
     DetalhesV.SetActive(false);
 }