void MostrarBtnsDeCompraEVenda() { btns.btnMelhorar.interactable = true; btns.btnVender.interactable = true; btns.textoDoBotaoMelhorar.text = MelhoraEquipamento.TextoDeMelhora(slotes[selecionado].EquipamentoNoSlote); btns.textoDoBotaoVender.text = "Vender esse equipamento por: \r\n" + slotes[selecionado].EquipamentoNoSlote.ValorDeVenda + " Moedas"; }
public void BotaoMelhorar() { if (MelhoraEquipamento.Melhorar( slotes[selecionado].EquipamentoNoSlote, umaMensagem, transform.parent.gameObject, ReligarBotoes)) { FindObjectOfType <ControladorDaHUD_Equipamentos>().AtualizaNivelDoEquip(slotes[selecionado].EquipamentoNoSlote); AtualizaSlotes(); } }