platinumdalek
❔ Delegate never assigned to (SOLVED!)
I am trying to simplify my code by having a list of delegates, 1 for each player. The game can have up to 4 players. I want to callback only on the player who needs the event. To attempt that I created a switch statement with the players index and then register/invoke events for that player only. However, I am getting a warning that my delegates are never assigned to. What am I doing wrong? Thank you for the help!
Notes:
* RegisterForMovementAction and RaiseMovementEvent are being called.
* "action" is null in both cases. Its only writing to the local variable, not the member field.
11 replies