I'm instancing a button in my scene and I want to be able to connect the
_pressed() signal to the main scene it's being instanced in. How can I do this without a singleton?
I could have the button emit a signal in the
_ready function and then connect it in the main script, but I have no way to access the button without making it a singleton. Is there a way to access it only after the button is instanced?