public void Init(BulletPool bulletPool, BoundaryProvider boundaryProvider) { this.boundaryProvider = boundaryProvider; weapon.Init(bulletPool); healthSystem.Init(); aiLoop = StartCoroutine(AIMachine()); healthSystem.OnDied += Despawn; }
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); }
public void Init(BulletPool bulletPool, BoundaryProvider boundaryProvider) { this.bulletPool = bulletPool; this.boundaryProvider = boundaryProvider; }
public void Init(BoundaryProvider boundaryProvider) { this.boundaryProvider = boundaryProvider; Observable.Interval(TimeSpan.FromSeconds(2)).Subscribe(ONNext); }