示例#1
0
 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();
     }
 }
示例#2
0
 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();
     }
 }