Collider2d Dont work (Unity 5)

I put a collider2d in a character, I put

void OnTriggerEnter2D(Collider2D other)

if(other.tag==“X”)

print (“something”);

the collider2d in the character is in trigger, the X objects has another collider. when I go to the objects nothing happens. I try without trigger, and with OnCollisionEnter2d, but dont work too… any idea?

The X object has in the script the OnTriggerEnter2d too, and work fine, when they hits a wall or something, but dont detect my character…

Your if() statement ends in a semicolon, which prevents the next line from execution.

Post error, In the game code, its ok. Help me please.