OnTriggerEnter not working?

Hi,

I try to make interaction between player and enemy so I use On Trigger Enter. It’s not working and here a debug code:

void OnTriggerEnter(Collider other){
        if(other.tag == "Player"){
            Debug.Log ("Die");
        }
    }

Both Object player and enemy has Collider attached. Enemy object also has Trigger selected.

I have no idea what causing it not to work. I’m working on 2D project. It used to work on 3D project.
Additionally, On Collision Enter also not working. I ran out of idea that why I come here.

What happens when you remove the “if” criteria? Does anything collide with it? Also on the Collider, have you ticked “Is Trigger”?

Have you added Rigidbody to the object where you have the collision detection script?