コード例 #1
0
        public EnemySpawnerEngine(Factories.IGameObjectFactory gameobjectFactory, IEntityFactory entityFactory)
        {
            _gameobjectFactory    = gameobjectFactory;
            _entityFactory        = entityFactory;
            _numberOfEnemyToSpawn = 15;

            IntervaledTick().Run();
        }
コード例 #2
0
 public BonusHealthSpawnerEngine(ISequencer bonusSpawnerSequence, Factories.IGameObjectFactory gameobjectFactory,
                                 IEntityFactory entityFactory)
 {
     _bonusSpawnerSequence = bonusSpawnerSequence;
     _gameobjectFactory    = gameobjectFactory;
     _entityFactory        = entityFactory;
     IntervaledTick().Run();
 }
コード例 #3
0
        public EnemySpawnerEngine(ISequencer enemyWaveSequence, ISequencer enemySpawnSequence,
                                  Factories.IGameObjectFactory gameobjectFactory, IEntityFactory entityFactory)
        {
            _gameobjectFactory      = gameobjectFactory;
            _entityFactory          = entityFactory;
            this.enemyWaveSequence  = enemyWaveSequence;
            this.enemySpawnSequence = enemySpawnSequence;

            IntervaledTick().Run();
        }
コード例 #4
0
 public PlayerGunShootingEngine(EnemyKilledObservable enemyKilledObservable, ISequencer damageSequence,
                                IRayCaster rayCaster, ITime time, Factories.IGameObjectFactory gameobjectFactory,
                                IEntityFactory entityFactory)
 {
     _enemyKilledObservable = enemyKilledObservable;
     _enemyDamageSequence   = damageSequence;
     _rayCaster             = rayCaster;
     _time        = time;
     _taskRoutine = TaskRunner.Instance.AllocateNewTaskRoutine().SetEnumerator(Tick())
                    .SetScheduler(StandardSchedulers.physicScheduler);
     _gameObjectFactory = gameobjectFactory;
     _entityFactory     = entityFactory;
 }
コード例 #5
0
 public EnemySpawnerEngine(Factories.IGameObjectFactory gameobjectFactory, IEntityFactory entityFactory, ISequencer enemySpawnSequence)
 {
     _gameobjectFactory  = gameobjectFactory;
     _entityFactory      = entityFactory;
     _enemySpawnSequence = enemySpawnSequence;
 }
コード例 #6
0
 public EnemySpawnerEngine(Factories.IGameObjectFactory factory, IEntityFactory entityFactory)
 {
     _factory       = factory;
     _entityFactory = entityFactory;
     TaskRunner.Instance.Run(IntervaledTick);
 }
コード例 #7
0
 public PickupSpawnerEngine(Factories.IGameObjectFactory factory, IEntityFactory entityFactory)
 {
     _factory       = factory;
     _entityFactory = entityFactory;
     TaskRunner.Instance.Run(new TimedLoopActionEnumerator(Tick));
 }
コード例 #8
0
 public BonusSpawnerEngine(Factories.IGameObjectFactory gameobjectFactory, IEntityFactory entityFactory)
 {
     _gameObjectFactory = gameobjectFactory;
     _entityFactory     = entityFactory;
 }