You can add a collision box to your object and select the "Is trigger".
In your "player" object you need add a rigidibody and a collision box and after, write one script to him.
For example:
void OnTriggerEnter(Collider other)
{
if (other.gameObject.tag == "PickUpItem")
{
other.gameObject.SetActive(false);
}
}
↧