Ejemplo n.º 1
0
 public void OnConfirmEquipmentChange()
 {
     selectedInventorySlot = EventSystem.current.currentSelectedGameObject.GetComponent <InventorySlot>();
     playableCharacterInfo.ChangeEquipment(selectedEquipmentSlot.equipmentType, (EquipmentObject)selectedInventorySlot.item);
     selectedEquipmentSlot.AssignSlot(selectedInventorySlot.item);
     this.gameObject.SetActive(false);
 }