Access Button Device properties in subscribe

I am trying to make a voting system. The score managers will display a number for each vote. Right now I have each button subscribe to its own function which is so much copy paste. How could I do this without copy pasting? I tried to look for a way to access what button in the button array trigger the function but failed to find a way.

Hi!

This post goes over a voting system quite extensively and could very well be a solution to your problem!

2 Likes