Class CrowdManager
is used to manage the spawning of crowds in the scene.
More...
Public Member Functions | |
void | SpawnIndividualCrowd (int spawnPointIndex=0, bool editorControlled=false) |
Method SpawnIndividualCrowd spawns a crowd at a specific spawn point. | |
void | SpawnAllCrowds (List< int > excludedSpawnPoints) |
Method SpawnAllCrowds spawns a crowd with 7 max people at all available spawn points. | |
Class CrowdManager
is used to manage the spawning of crowds in the scene.
void CrowdManager.SpawnAllCrowds | ( | List< int > | excludedSpawnPoints | ) |
Method SpawnAllCrowds
spawns a crowd with 7 max people at all available spawn points.
This is able to exclude spawn points by passing a list of integers that represent the index of the spawn point to exclude.
void CrowdManager.SpawnIndividualCrowd | ( | int | spawnPointIndex = 0, |
bool | editorControlled = false ) |
Method SpawnIndividualCrowd
spawns a crowd at a specific spawn point.
This method should mainly be used by the Editor tool to spawn a crowd at a specific spawn point for testing.