public Component colliderComponent ;

Descripción

The Collider or Collider2D for the GameObject struck by the particles.

Cast the return value and test for null, if you expect both Collider and Collider2D components to be returned.