public AsteroidManager( Settings settings, Asteroid.Factory asteroidFactory, LevelHelper level) { _settings = settings; _timeIntervalBetweenSpawns = _settings.maxSpawnTime / (_settings.maxSpawns - _settings.startingSpawns); _timeToNextSpawn = _timeIntervalBetweenSpawns; _asteroidFactory = asteroidFactory; _level = level; }
public void Construct(IAsteroidFactoryInterface <AsteroidType, AsteroidData> asteroidDataFactoryInterface, LevelHelper levelHelper) { this.m_asteroidDataFactoryInterface = asteroidDataFactoryInterface; this.m_level = levelHelper; }
public void Construct(UFO.Factory ufoFactory, LevelHelper level, IUFOFactoryInterface <UFOType, UFOData> ufoDataFactoryInterface) { m_ufoFactory = ufoFactory; m_level = level; m_ufoDataFactory = ufoDataFactoryInterface; }