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