#placement for Managers

8 messages · Page 1 of 1 (latest)

deft swan
#

they could also be auto-loaded for easy access

thick canyon
# deft swan they could also be auto-loaded for easy access

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?

deft swan
#

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
thick canyon
#

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?

deft swan