コード例 #1
0
 private void SpawnSomething()
 {
     if (_enemySpawner.SpawnEnemy() && _monstersLeftToSpawn.Count > 0)
     {
         // TODO: Create stuff based on type
         EnemyTypeEnum typeToSpawn = _monstersLeftToSpawn.Dequeue();
         Enemy         newEnemy    = _enemyFactory.CreateDefault(typeToSpawn, _settings.Waypoints);
         CurrentEnemiesNew.Add(newEnemy);
     }
 }