# WaveManager

### Description

This component is the responsible for spawning enemies given a [SpawnerGraph](https://joanorba.gitbook.io/spawnertool/api/data/spawnergraph).

See [Wave Manager](https://app.gitbook.com/s/-MlQcM7T234QEmMr3Dun/making-enemies-spawn/making-enemies-spawn/managing-spawnpoints) for further details on how to use it.

### Properties

| bool                                                                                             | IsRoundActive               | Is round currently spawning enemies?                                                                                      |
| ------------------------------------------------------------------------------------------------ | --------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [SpawnerGraph](https://joanorba.gitbook.io/spawnertool/api/data/spawnergraph)                    | CurrentSpawnerGraph         | Change actual graph. It can only be changed if round is not active.                                                       |
| [SpawnPointsIDManager](https://joanorba.gitbook.io/spawnertool/api/runtime/spawnpointsidmanager) | CurrentSpawnPointsIDManager | Change current [SpawnPointsIDManager](https://joanorba.gitbook.io/spawnertool/api/runtime/spawnpointsidmanager) reference |

### Events

<table data-header-hidden><thead><tr><th width="254.33333333333331"></th><th></th><th></th></tr></thead><tbody><tr><td>UnityEvent</td><td>OnRoundFinished</td><td>When current round of the graph has finished</td></tr><tr><td>UnityEvent</td><td>OnAllRoundsFinished</td><td>When all rounds of the graph have been spawned</td></tr><tr><td>UnityEvent&#x3C;GameObject></td><td>OnEnemySpawn</td><td>Raised when spawns enemy. It has the enemy GameObject reference</td></tr></tbody></table>

### Public Methods

| [StartRound](https://joanorba.gitbook.io/spawnertool/api/runtime/wavemanager/startround) | Starts a new round |
| ---------------------------------------------------------------------------------------- | ------------------ |
