A class in Root.Township, Alta.Populations.
Scene entity that runs the GlobalPopulationDefinition assets on the server: initializes them, starts them once the server has booted, and cleans them up when destroyed.
Constructors
| Member | What it is |
|---|
GlobalPopulationsManager() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
1 private and internal field
Methods
| Member | What it is |
|---|
override void Initialize() | Server: initializes every population and waits for BootupFinished to start them. |
2 private and internal methods
| Member | What it is |
|---|
private void OnSceneDestroy(NetworkEntity entity, bool isUnload) | Cleans every population when the entity is destroyed. |
private void StartUp() | Starts every population once the server finishes booting. |