#pragma warning restore 649 protected override JobHandle OnUpdate(JobHandle inputDeps) { var job = new EnemyHealthJob { Ecb = endFrameBarrier.CreateCommandBuffer().ToConcurrent(), Dead = GetComponentDataFromEntity <DeadData>() }; return(job.Schedule(this, inputDeps)); }
protected override JobHandle OnUpdate(JobHandle inputDeps) { var job = new EnemyHealthJob { Ecb = barrier.CreateCommandBuffer().ToConcurrent(), Dead = GetComponentDataFromEntity <DeadData>() }; inputDeps = job.Schedule(this, inputDeps); barrier.AddJobHandleForProducer(inputDeps); return(inputDeps); }