(Note to self: don't record videos after midnight)
This is a breakdown of a more complex usage of buttons in Udon for VRChat, allowing you to just have one button object that can be used with other objects to do actions contextually. Of course this will be using Udon, but I also walk through how to make this in UdonSharp as well for those more interested in pure coding.
VRChat Udon SDK:
https://vrchat.com/home/download
UdonSharp:
https://github.com/Merlin-san/UdonSharp