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…