Implemented field creation and wateringcan fill up animation

This commit is contained in:
2025-05-24 21:47:25 +02:00
parent b917fb5fbd
commit a477f9ef4f
7 changed files with 40 additions and 121 deletions
@@ -15,8 +15,11 @@ public partial class InventoryManager : Node
get => _currentSelectedSlotIndex;
set
{
_currentSelectedSlotIndex = value;
EmitSignalSlotIndexChanged(_currentSelectedSlotIndex);
if (value >= 0 && value <= 8)
{
_currentSelectedSlotIndex = value;
EmitSignalSlotIndexChanged(_currentSelectedSlotIndex);
}
}
}
@@ -23,8 +23,6 @@ public partial class ItemOnGround : Node3D
public void TryPickUp()
{
GD.Print("Trying to pick up item");
var result = InventoryManager.Instance.CollectItem(itemInstance.Clone());
if (result == InventoryActionResult.Success)
{