public Transform transform ;

Description

Transform объекта, с которым мы столкнулись (Read Only).

If we collided against a collider with a Rigidbody, the transform will be the transform attached to the rigidbody. If we collided against a collider without a rigidbody, the transform will be the transform attached to the collider.