click on a 3D object in the game

How can I click on a 3D object in the game, and execute an action in this way?

Have a look at the OnMouseDown and OnMouseUp events. For this to work, you need to make sure your objects have colliders on.

Thanks you a good man ;-)