示例#1
0
 public void OnPointerDown(PointerEventData eventData)
 {
     if (eventData.button == PointerEventData.InputButton.Right && vendorPanel.activeSelf == true && parent == "invSlot")
     {
         vendorMan.AddItemToVendor(item.id);
         inventory.items [slotID] = new Item();
         Destroy(this.gameObject);
         playerMan.IronCurrency  += item.iron_Currency;
         playerMan.WoodCurrency  += item.leather_Currency;
         playerMan.ClothCurrency += item.cloth_Currency;
         tooltip.Deactivate();
     }
 }