function OnCollisionEnter2D(coll: Collision2D) {
if (coll.gameObject.tag == "Tag") {
}
}
That is my function to do triggers/collision and it works perfectly
***Note!! Collision 2d will only collide with a object with a 2d collider***
↧