Manager

Manager scripts that other managers can extend from. In some cases, you may wish to keep your manager disabled until other scripts in the scene become available. If so, you can check the loaded boolean to determine whether certain functions should be skipped. There is a demo scene available in the package to illustrate this.

There is also a ManagerAdder script that can be used to automatically find and add all of your managers into the scene. Whenever a manager is ready (after load), please remember to call LoadComplete so the ManagerAdder know to remove it from the list.

Some managers depend on other managers to already exist. You can add null reference checks in those cases, and should the check fail, call LoadComplete(false) to let ManagerAdder know. ManagerAdder will then re-attempt to load the failed managers until everything passes.