I am wanting to make a ScoreReciever components that keeps track of the score the player recieves. I also have a ScoreGiver component on any actor that will give score to the player when destroyed or killed. Is there a way I can call an event on any ScoreGiver component that all ScoreReciever components will recieve without a reference, as I want all ScoreReciever components to get every GiveScore event from all actors with the ScoreGiver component. I do not want to have references to all of the actors with the ScoreGiver component?
I basically need a global event dispatcher that broadcast an event that all of the ScoreReciever components get without having to cast or get a reference.
Thank you.