Yes I understand that, but whenever your beacon encounters a coin does it need to know what kind of coin it is at all? Or does it just need to know how many coins to add to the total?
Unless you have multiple types of Beacons that all need to be able to take coins, then there is no reason to use an interface. An interface should be used when you have multiple entities in your game, that needs to have the same functionality but you don’t care about the implementation.
So say you have a door, a soda machine and a cash register. When you look at any of those and press a button, a raycast is thrown out and hits one of those three items. No matter which of the three items you hit, you just want them to do a “Use” function call and then do whatever that entails. An interface can help here because while the door can open with the Use Function, the Soda Machine can dispense a soda and the cash register plays a “sales” animation. But they all make use of the same interface.
I’ve made a video on this subject here: