|Topic was automatically imported from the old Question2Answer platform.
The situation is as follows:
- There is a script attached to the main scene.
- There is a separate class script, which has a static function.
- There is a signal in the main script, which calls a function in the same script.
I need to call this signal (emit_signal) from this static function and for this I need an instance of the current main.
How do I get it without a global variable?