Hi!
Im trying to catch the moment when my enemy prefab get attached on a fence (tag = "Colisiones"), with a Box Collider 2D. My Enemy has a collider too (circle collider 2d) and a rigid body 2d, so the code it
s on his script
void OnCollisionEnter(Collision col) {
if (col.gameObject.tag == "Colisiones") {
onCol = true;
}
There are the options of my Enemy Rigidbody:
Do you see anything?
Thanks!!