#placement for Managers
8 messages · Page 1 of 1 (latest)
thanks for the answer, so I made a node named Global that i added to the Globals/auto-load. for now I only added the experienceManager in the global. so now I changed the placement of the UpgradeManager from the UI to the player. But how do I add the experienceManager reference to the upgrademanager?
but can't the managers all live in the Global?
or them be auto-loaded themselves?
why do need it to be inside the player node?
but if you need it that way, you can have the manager register itself in its ready function
Global.experience_manager = self
No, they don't need to be inside the player node. Now I've added them all to the Global so they are always loaded in.
But my UpgradeManager still needs a reference from the ExperienceManager.
And is my Global okay like this? Ive just added them as var's, but dont I need to add something else for them to be really loaded or is this fine?
how are you setting those variable in GLobal though?
You need to either load your manager scenes and add to the tree, or make your Global a PackedScene with the manager inside and auto-load the whole scene instead of the script