Первый коммит с LFS.
This commit is contained in:
1 parent
4fcb1e2f24
commit
179816dc4b
5084 files changed
+3714098
-1
No files matched your search
@@ -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}";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user