Property setter was expecting a component but got a IntNum instead

i was following a tutorial but i probably got something wrong because its late at night AA there was another user that had a similar problem but i cant figure out how to use their solution into this code

Here ?

Don't repeat yourself.

  1. save the list of buttons in a list and use it if needed.
  2. use any button. click event, not one event for each button.