OnCollisionEnter2d
void OnCollisionEnter2D(Collision2D collision) //Make sure to put this out of Voids
{
if (other.gameObject.tag == "Object")
{
Debug.Log ("Collided");
}
}
Am coder