I'm trying to let one of my classes know when something collides with something else and I think it would be a really good opportunity to learn how to implement events. Basically, I've got a bunch of balls on the screen and if any of them hit anything, I need one of my classes to be notified and to call a method when this happens. How can I implement this? I've looked at this here:
But I don't really understand what exactly is going on or how to tie this into my own code. For reference, the class that needs to be notified of the collision is AssaultRiflePickUp, and the class that we are watching for is Ball. Thanks for the help!