Collision vs trigger

Hello everyone.

Trying to learn Collision, but I’m stuck at this 2D collision.

Why is trigger working but not OnCollisionEnter2D ?
This is only if I have actived “Is Trigger”

Both game objects have a collision box.

 function OnCollisionEnter2D (hit:Collision2D){
        if(hit.collider.tag == "Ground"){
                Destroy (gameObject);
function OnTriggerEnter(hit:Collider){
        if(hit.tag != "Ground"){
                Destroy (gameObject);
} */

if you are want it to use that way you can, you will have to program the game like if it was a 3d game though, which isn’t that bad. But to be honest, I think the 2d toolset is more powerful and optimized than the original one (3d). I recommend you taking a look at the tutorials on the unity website, they have a tutorial series dedicated to the 2d toolset I think. I would convert it to 2d since it’s more powerful and seems to be better overall, but if you want to keep it the way it is atm, it’s your choiche.