예제 #1
0
        public SpawnWave(SpawnWaveData spawnWaveData, WaveSpawner owner)
        {
            _spawnWaveData = spawnWaveData;
            _owner         = owner;

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