public void addArrowInterface(arrowsType arrow, int qtd) { if (arrow == arrowsType.brust) { qtdBrustArrow += qtd; brustQTD.text = "x" + qtdBrustArrow.ToString(); } else if (arrow == arrowsType.piercing) { qtdPiercingArrow += qtd; PiercingQTD.text = "x" + qtdPiercingArrow.ToString(); } }
public void removeArrowInterface(arrowsType arrow, int qtd) { if (arrow == arrowsType.brust) { qtdBrustArrow -= qtd; if (qtdBrustArrow < 0) { qtdBrustArrow = 0; } brustQTD.text = "x" + qtdBrustArrow.ToString(); } else if (arrow == arrowsType.piercing) { qtdPiercingArrow -= qtd; if (qtdPiercingArrow < 0) { qtdPiercingArrow = 0; } PiercingQTD.text = "x" + qtdPiercingArrow.ToString(); } }