How to do dependency injection and organize my scenes better?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By JulioYagami

I was reading the docs and found this:

I didn’t understand these examples. Could anyone explain me better?

:bust_in_silhouette: Reply From: eduardocopat

I had the same question and found this blog post:

:bust_in_silhouette: Reply From: aleffeh

I wrote a medium post just about this :slight_smile:

https://medium.com/@aleffehxd/a-better-alternative-than-signals-in-godot-with-c-dependency-injection-8f3083dc90a1