Files
HauntedBloodlines/Assets/Scripts/Inventory/Items/PickupInventoryItem.cs
2025-05-29 22:31:40 +03:00

16 lines
331 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TRInventoryUpdatable;
public class PickupInventoryItem : MonoBehaviour
{
public void ItemPickup()
{
var updatable = transform.GetComponent<IPickable>();
if (updatable == null) return;
updatable.Pickup();
}
}