Download

Handling SFX using IMessageBus (sending message to AudioController)

I’m trying to find a way of sending a message across from any place in the game, to be able to play the sound via the audio controller that would subscribe to that message. I have an enum storing all the SFX that are mapped to the sound cues. How do I implement IMessageBus to be usable for that case? Are there any good examples of how this interface is implemented?
Is there is a different/better way that I could handle SFX?