tag no working and don't know why

i have my code to see if a certain tag is touching the game object, then a couple things should happen. I have tagged the thing that needs to be tagged, in my case a bullet, the tag is “Bullet”. I have tried to put the debug.log to see if the event is being triggered, and it is not, any help would be appreciated.

You’re currently checking if the enemy’s own tag is Bullet. You probably want to check if the bullet’s tag is bullet. You can access the other object in the collision through the Collision2D parameter in your function, which you have named other. You can look here to see what data that parameter gives you access to: Unity - Scripting API: Collision2D

so how would i put this in the code?

nvm i got it