2026-04-03 상호작용 버그 수정
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user