protected override JobHandle OnUpdate(JobHandle inputDeps) { var rotationFromHeadingJob = new RotationFromHeading(); var rotationFromHeadingJobHandle = rotationFromHeadingJob.Schedule(this, inputDeps); return(rotationFromHeadingJobHandle); }
protected override JobHandle OnUpdate(JobHandle inputDeps) { var rotationFromHeadingJob = new RotationFromHeading { rotations = m_HeadingsGroup.rotations, headings = m_HeadingsGroup.headings, }; var rotationFromHeadingJobHandle = rotationFromHeadingJob.Schedule(m_HeadingsGroup.Length, 64, inputDeps); return(rotationFromHeadingJobHandle); }
protected override JobHandle OnUpdate(JobHandle inputDeps) { var rotationFromHeadingJob = new RotationFromHeading { rotations = m_HeadingsGroup.rotations, headings = m_HeadingsGroup.headings, }; var rotationFromHeadingJobHandle = rotationFromHeadingJob.Schedule(m_HeadingsGroup.Length, 64, inputDeps); var localRotationFromLocalHeadingJob = new LocalRotationFromLocalHeading { rotations = m_LocalHeadingsGroup.rotations, headings = m_LocalHeadingsGroup.headings, }; var localRotationFromLocalHeadingJobHandle = localRotationFromLocalHeadingJob.Schedule(m_LocalHeadingsGroup.Length, 64, inputDeps); return(JobHandle.CombineDependencies(rotationFromHeadingJobHandle, localRotationFromLocalHeadingJobHandle)); }