Is it possible to change singleton during runtime via code? Or set singleton during runtime?
For example. I have StartMenu scene (My tree look like: [root].[StartMenu]). After pressing start button I want to change scene and use some scripts like they were autoloaded (My new tree: [root].[AutoloadedScript1,AutoloadedScript2,MainScene]).
I ask, because my scripts, which I want to be autoloaded, have some referances to nodes from MainScene node. And when they are loaded from the beginning, there are ofc errors because engine cant find these nodes. Now I know, I shouldnt design Singletons in this way. Just asking if there is a solution or should I redesign all code.