A `BP_Boss` actor needs to notify multiple, unrelated actors (`BP_Door`, `BP_Trap`, `BP_MinionSpawner`) when it is defeated. The `BP_Boss` should not need to know anything about these other actors. Which is the most appropriate and decoupled method to implement this notification?
-
A
Use a Blueprint Interface with an 'OnBossDefeated' function and call it on every actor in the level.
-
B
In the Level Blueprint, get a reference to the boss and all listening actors and connect them directly.
-
C
Create an Event Dispatcher on the `BP_Boss` called 'OnDefeated' and have the other actors bind an event to it.
-
D
On BeginPlay, have the boss actor use 'Get All Actors of Class' for each type of listener and store them in an array to call a function on later.