On Click notification set on the UIButton in inspector lets you choose any function, including functions that have parameters. If you choose a function with parameters, you can then set those parameters using any value you want, including passing the button's game object if you like.
However UIButton.current.gameObject already tells you that.