I have an enemy gameObject with ridgid body 2D, kinematic turned of and box colider 2D on it with the following script:
function OnCollisionEnter2D(coll: Collision2D) {
if (coll.transform.tag == "Player"){
print("attack");
animZombie.SetTrigger("attack");
}
}
But when it bumped into the Player and it didn’t respond. Then I tried to set the print statement outside the if statement and it should response to everything it hits for example the ground where it stands on. But nothing… totally radio silence. Me not compute… Help:face_with_spiral_eyes: