I'm creating a few buttons with a for, and adding colliders and event listeners to each one. All this buttons call the same function when OnClick is dispatched.
I can receive the button itself as parameter in the called function, but I would like to receive the button index.
Is it possible to pass a second parameter to it, to any other workaround?