protected override JobHandle SetPredictedGhostDefaults(NativeArray <ExtraBlockSnapshotData> snapshots, NativeArray <int> predictionMask, JobHandle inputDeps) { var job = new SetPredictedDefault { predictionMask = predictionMask, }; return(job.Schedule(predictionMask.Length, 8, inputDeps)); }
protected override JobHandle SetPredictedGhostDefaults(NativeArray <LagCompensationTestPlayerSnapshotData> snapshots, NativeArray <int> predictionMask, JobHandle inputDeps) { JobHandle playerHandle; var job = new SetPredictedDefault { snapshots = snapshots, predictionMask = predictionMask, localPlayerId = m_PlayerGroup.ToComponentDataArrayAsync <NetworkIdComponent>(Allocator.TempJob, out playerHandle), }; return(job.Schedule(predictionMask.Length, 8, JobHandle.CombineDependencies(playerHandle, inputDeps))); }