Can I have two sprites that can detect collision? Player and item?
They have the colliderobject on each sprite, but my debug in the function isn't running. It's like the objects don't collide.
Can I have two sprites that can detect collision? Player and item?
They have the colliderobject on each sprite, but my debug in the function isn't running. It's like the objects don't collide.
You need to use the OnTriggerEnter function and make sure the objects collider has Is Trigger checked.