protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        LineFromEntitiesJob job = new LineFromEntitiesJob {
            _translations = GetComponentDataFromEntity <Translation>()
        };

        return(job.Schedule(this, inputDeps));
    }
Ejemplo n.º 2
0
    protected override JobHandle OnUpdate(JobHandle inputDeps)
    {
        if (_data.Length == 0)
        {
            return(inputDeps);
        }

        LineFromEntitiesJob job = new LineFromEntitiesJob {
            _lines       = _data.lines,
            _entityPairs = _data.entityPairs,
            _positions   = _positions
        };

        JobHandle jobHandle = job.Schedule(_data.Length, 64, inputDeps);

        return(jobHandle);
    }