Collisions Not Working

function OnCollisionEnter (collision : Collision) { 

	if(collision.gameObject.name == "Player") { 
       
       	ItemSpawner.bombCount += quantity;
    	Destroy (gameObject);
} 
}

I’ve checked everything over and over, but this script does nothing. Any ideas?

Do you have rigidbodys and colliders on your gameobjects ?

As i remember, the collider code needs to be added to an object with a rigidbody + collider(not set to trigger), otherwise it does not work properly

Follow the up buddys,and check your collider layer.