public SpawnWave(SpawnWaveData spawnWaveData, WaveSpawner owner) { _spawnWaveData = spawnWaveData; _owner = owner; foreach (SpawnGroupData spawnGroup in _spawnWaveData.SpawnGroups) { _spawnGroups.Add(new SpawnGroup(spawnGroup, _owner, this)); } }
public SpawnGroup(SpawnGroupData spawnGroupData, WaveSpawner owner, SpawnWave wave) { _spawnGroupData = spawnGroupData; _owner = owner; _wave = wave; }