Array of Delegates

There are cards in 5 positions (called Card Decks), and the PlayerController has to know if one of them are clicked, and must know exactly which one. (And I would also like to know if right or left mouse button, so there should be double if it is the Card that checks the R/L button.) Of course I don’t want them to do the exact same thing, the PrintString is just there for testing. Since later the cards would be changed, these delegates should be unbound and bound to another card.

If I’d do it one by one without ForEachLoop, it would be much more ugly copy-paste work at a lot of places. If the bound events could get a variable from the event dispatcher, than I shouldn’t even need multiple events (0,1,2…) for a very similar task.