Assuming you have a different class for the ball and door, if you implement an interaction interface, you can call the necessary events unique to each class on interact event.
Assuming you have a different class for the ball and door, if you implement an interaction interface, you can call the necessary events unique to each class on interact event.