first commit

This commit is contained in:
2026-06-04 18:31:31 +03:00
commit deb988bddf
143 changed files with 13144 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
using UnityEngine;
[System.Serializable]
public class InventorySlot
{
public ItemData item;
[Min(0)] public int amount;
public InventorySlot(ItemData item, int amount)
{
this.item = item;
this.amount = Mathf.Max(0, amount);
}
public bool IsEmpty()
{
return item == null || amount <= 0;
}
public string GetDisplayText()
{
if (IsEmpty())
{
return "Пусто";
}
return item.itemName + " x" + amount;
}
}