Detect click on dynamically generated mesh in Unity2d

Hi !
I am working on a simple game which requires dynamic generation of meshes of shape representing pipes in 2d. After cracking the problem of creating dynamic meshes now I am not getting how to detect click on this newly created mesh. Any suggestion/insight/solution/tips is highly appreciated ! Thanks a lot !

You need to add a mesh (or sphere, or box, or capsule) collider to the object.

gameObject.AddComponent(MeshCollider);