Первый коммит с LFS.

This commit is contained in:
vladislove committed 2026-01-11 17:04:23 +03:00
1 parent 4fcb1e2f24
commit 179816dc4b
5084 files changed
+3714098 -1

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
using UnityEngine;
public class InteractableItem : MonoBehaviour, IInteractable
{
public ItemData itemData;
public void Interact()
{
bool added = InventorySystem.Instance.AddItem(itemData);
if (added)
{
Destroy(gameObject);
}
}
public string GetDescription()
{
return $"Подобрать {itemData.itemName}";
}
}