コード例 #1
0
 public AsteroidManager(
     Settings settings, Asteroid.Factory asteroidFactory, LevelHelper level)
 {
     _settings = settings;
     _timeIntervalBetweenSpawns = _settings.maxSpawnTime / (_settings.maxSpawns - _settings.startingSpawns);
     _timeToNextSpawn           = _timeIntervalBetweenSpawns;
     _asteroidFactory           = asteroidFactory;
     _level = level;
 }
コード例 #2
0
ファイル: AsteroidManager.cs プロジェクト: Aszan/Zenject
 public AsteroidManager(
     Settings settings, Asteroid.Factory asteroidFactory, LevelHelper level)
 {
     _settings = settings;
     _timeIntervalBetweenSpawns = _settings.maxSpawnTime / (_settings.maxSpawns - _settings.startingSpawns);
     _timeToNextSpawn = _timeIntervalBetweenSpawns;
     _asteroidFactory = asteroidFactory;
     _level = level;
 }
コード例 #3
0
 public void Construct(IAsteroidFactoryInterface <AsteroidType, AsteroidData> asteroidDataFactoryInterface, LevelHelper levelHelper)
 {
     this.m_asteroidDataFactoryInterface = asteroidDataFactoryInterface;
     this.m_level = levelHelper;
 }
コード例 #4
0
ファイル: UFOSpawner.cs プロジェクト: rugved33/Zenject-Demo
 public void Construct(UFO.Factory ufoFactory, LevelHelper level, IUFOFactoryInterface <UFOType, UFOData> ufoDataFactoryInterface)
 {
     m_ufoFactory     = ufoFactory;
     m_level          = level;
     m_ufoDataFactory = ufoDataFactoryInterface;
 }