protected override JobHandle OnUpdate(JobHandle inputDeps) { var job = new TaskJob() { aiUnits = aiUnits, commandBuffer = endFrameBarrier.CreateCommandBuffer() }; return(job.Schedule(aiUnits.Length, 1000, inputDeps));///TODO: fix inner loop batch count }
JobHandle ScheduleTaskJob() { TaskJob job = new TaskJob(); return(job.Schedule()); // This tells the job system to schedule this job to be completed by available thread when possible }