2026-04-03 상호작용 버그 수정

This commit is contained in:
2026-04-03 11:34:25 +09:00
parent 7e19e4f248
commit 78e0f1a5b6
5 changed files with 47 additions and 17 deletions

View File

@@ -188,14 +188,10 @@ public void OnPointerClick(PointerEventData eventData)
// 우클릭
if (eventData.button == PointerEventData.InputButton.Right)
{
ItemUse();
if(currentItem != null) //아이템이 존재할시에만 사용
{
GameManager.Instance.Inventory.ItemUse(SlotIndex);
}
}
}
public void ItemUse()
{
GameManager.Instance.ItemEffect.ItemUse(currentItem);
currentItem.CurrentStack -= 1;
UpdateSlotUI();
}
}