Exemplo n.º 1
0
        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
        }
Exemplo n.º 2
0
    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
    }