OnMouseDown for multiple items with one script?

I’m just trying to find out what’s the simplest / most elegant way of having multiple buttons and controlling their behaviour from one place. For many of the button features in the game I’m just using the same script attached to each of the buttons as the purpose of those buttons is pretty global.

But now I’d want to control the behaviour of a couple of buttons outside those gameobjects. So what I’d like to have is something like this:

collider1.onMouseDown => do this
collider2.onMouseDown => do that

What’s the most elegant way of doing this?

Ok, well, I made a separate script to use for this. Maybe it is actually the simplest solution for this.