So in my game there will be 3 main types of items: equippables, consumables, and movables.
Each of those types of items will have a different way of interaction: right-click, e, and left-hold respectively.
Once the correct interaction button for the items type is used I want to call a function on a script attached to the object itself.
I want to do this using a raycast. How would the raycast know what interaction button is correct for the object it hits, and then how would I call the function of the script attached to said object?