Deselect item on empty InventorySlot.cs clicked
This commit is contained in:
parent
147af498c3
commit
d492a9efbb
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ public class InventorySlot : ItemStorageSlot, IPointerClickHandler {
|
|||
} else {
|
||||
Debug.Log("Item not usable " + Item.displayName);
|
||||
}
|
||||
} else {
|
||||
_playerController.DeselectItem();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue