My Walkover Pickup Solution

using GameDevTV.Inventories;

namespace InventoryExample.Control
{
[RequireComponent (typeof(Pickup))]
public class RunOverPickup : MonoBehaviour
{
private void OnTriggerEnter(Collider other)
{
if(other.CompareTag(“Player”))
{
GetComponent().PickupItem();
}
}
}

}

1 Like

Privacy & Terms