I have a question about working with signals. In my main scene, I have a 'Control' (Node2D) node, which is a parent to all object who have interaction (coins, the player, etc). And a UI node, which is the parent of all UI elements.
It seems reasonable to decouple these two as much as possible, and only let them interact with signals. So I made the following setup:
The starry things is where a script on that node emits a signal. In this way, the 'Control' node needs to know the structure of it's children, but the UI node shouldn't care. I like this setup, since control and UI are decoupled quite nicely.
However.. In this case, an event from the 'Coin' node needs to be emitted 3 times, before the data ends up in the UI node. That seems like a lot..
My question is:
Is this an OK way to do this? Is it lacking in performance, or am I maybe overthinking things?
Thanks in advance for your help.