Exemplo n.º 1
0
 public void OnPointerClick(PointerEventData eventData)
 {
     if (GameWorldReferenceClass.GW_Player.charInventory.Inventory[characterInventoryPane.ContextIndex].itemType == ItemType.Equipment)
     {
         GameWorldReferenceClass.GW_Player.doll.AddEquipment((EquipmentInventoryItem)GameWorldReferenceClass.GW_Player.charInventory.Inventory[characterInventoryPane.ContextIndex]);
         GameWorldReferenceClass.GW_Player.charInventory.Inventory.RemoveAt(characterInventoryPane.ContextIndex);
         //inventoryPane.DisplayCharacterInventory();
         characterInventoryPane.RemoveInventorySlot(characterInventoryPane.ContextIndex);
         characterInventoryPane.CloseContext();
     }
 }