Ejemplo n.º 1
0
        protected override JobHandle OnUpdate(JobHandle inputDeps)
        {
            var job = new LifeTimeJob
            {
                DeltaTime     = Time.deltaTime,
                LifeTime      = _group.LifeTime,
                Entity        = _group.Entity,
                CommandBuffer = _lifeTimeSystemBarrier.CreateCommandBuffer()
            };

            return(job.Schedule(inputDeps));
        }
Ejemplo n.º 2
0
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        LifeTimeJob lifeTimeJob = new LifeTimeJob {
            entityCommandBuffer = endSimulationEntityCommandBufferSystem.CreateCommandBuffer().ToConcurrent(),
            deltaTime           = Time.deltaTime
        };

        JobHandle jobHandle = lifeTimeJob.Schedule(this, inputDeps);

        endSimulationEntityCommandBufferSystem.AddJobHandleForProducer(jobHandle);
        return(jobHandle);
    }