16 lines
331 B
C#
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();
|
|
}
|
|
}
|