unity ontriggerenter2d not truggerinig code example Example: unity on collider enter 2d not working Add RigidBody to the gameobject