Cozy Wather + buld systeme
This commit is contained in:
@@ -110,13 +110,14 @@ namespace Ashwild.Inventory
|
||||
|
||||
private void HandleHotbarScroll(float dir)
|
||||
{
|
||||
if (PlayerEvents.IsPlacingBuild) return;
|
||||
if (dir > 0f) SelectHotbarSlot((selectedHotbarIndex - 1 + hotbarSize) % hotbarSize);
|
||||
else if (dir < 0f) SelectHotbarSlot((selectedHotbarIndex + 1) % hotbarSize);
|
||||
}
|
||||
|
||||
private void OnDropPressed()
|
||||
{
|
||||
if (PlayerEvents.IsInventoryOpen) return;
|
||||
if (PlayerEvents.IsInventoryOpen || PlayerEvents.IsChestOpen) return;
|
||||
if (PlayerStats.Instance != null && PlayerStats.Instance.IsDead) return;
|
||||
DropItem(selectedHotbarIndex, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user