Little to add. Use an Interface rather than hard coded references. Cleaner, safer, more flexible.
You don’t really need IDs - the player selects an actor and interacts with that actor. Unless you’re making puzzles - then you absolutely do need some form of ID. Which I’d still send through the interface.
But there’s more than one solution. Choose the one that works for you