en colisión 2d unidad

//Detects when collided with a 2D collider
//make sure to add box collider 2D and tick the is Trigger checkbox
//then create a script and add this in it
    void OnCollisionEnter2D(Collision2D col)
    {
        Debug.Log("2D Collision");
    }
Dentetsu