Hey everyone ![]()
I’ve been struggling for a while in Verse with creating and handling events without making my code too verbose.
For example, let’s say I have a Player class and I want to trigger an event whenever the player’s gold amount changes. Then, I’d like an AudioManager to listen to that event — but without it having any direct knowledge of the players themselves.
I can’t seem to find a clean solution that doesn’t involve adding a bunch of editable properties everywhere, which I’d really like to avoid.
I just thought maybe I could expose events through interfaces — would that be a good idea? Or do you have better approaches?