Example #1
0
 public void Init(BulletPool bulletPool, BoundaryProvider boundaryProvider)
 {
     this.boundaryProvider = boundaryProvider;
     weapon.Init(bulletPool);
     healthSystem.Init();
     aiLoop = StartCoroutine(AIMachine());
     healthSystem.OnDied += Despawn;
 }
Example #2
0
 public void Init(InputProvider inputProvider, BoundaryProvider boundaryProvider, BulletPool bulletPool)
 {
     this.boundaryProvider = boundaryProvider;
     weapon.Init(bulletPool);
     healthSystem.Init();
     inputProvider.OnAttackAxisChangedAsObservable().Subscribe(x => { weapon.Shoot(); });
     inputProvider.OnAxisChangedAsObservable().Subscribe(Move);
     healthSystem.OnDied += () => { Debug.LogError("Deeeeeeeeeeeed"); };
 }
        public async Task QuickExecute()
        {
            this._startTime = DateTime.Now;

            var bp = new BoundaryProvider(ChunkSize);

            var exe = new ChunkExecutor <ProcessingResult, ChunkBoundary>(
                ProcessChunk, bp.GetNextBonBoundary, HandleResult);

            await exe.StartRunners(Executors, this._cancellationToken);
        }
 public void Init(BoundaryProvider boundaryProvider, BulletPool bulletPool)
 {
     player.Init(inputProvider, boundaryProvider, bulletPool);
 }
Example #5
0
 public void Init(BulletPool bulletPool, BoundaryProvider boundaryProvider)
 {
     this.bulletPool       = bulletPool;
     this.boundaryProvider = boundaryProvider;
 }
Example #6
0
 public void Init(BoundaryProvider boundaryProvider)
 {
     this.boundaryProvider = boundaryProvider;
     Observable.Interval(TimeSpan.FromSeconds(2)).Subscribe(ONNext);
 }