Selecting multiple objects

I want to make a simon says game, and, i would like to select multiple objects through one script(i.e uparrow for top button) instead of attaching multiple scripts onto multiple objects. The reason i ask this is because when i “spam” click the arrow keys, sometimes they remain the colour. So maybe you can help me fix either or both of these problems.

Thank you

You can create Public Game Object with needed objects and then can instantiate or assign it in the start function and then in the update function you can assign its functionality. Hope this helps.