public void BeginSetup(JobComponentSystem system
#if ENABLE_UNITY_COLLECTIONS_CHECKS
                               , AtomicSafetyHandle safetyHandle
#endif
                               )
        {
            GhostIdentifierFromEntity = system.GetComponentDataFromEntity <GhostIdentifier>(true);

#if ENABLE_UNITY_COLLECTIONS_CHECKS
            SafetyUtility.Replace(ref GhostIdentifierFromEntity, safetyHandle);
#endif
        }
예제 #2
0
        public void SetEmptySafetyHandle <TComponent>(ref ComponentTypeHandle <TComponent> comp) where TComponent : struct, IComponentData
        {
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            SafetyUtility.Replace(ref comp, SafetyHandle);
#endif
        }
예제 #3
0
        public void SetEmptySafetyHandle(ref BufferFromEntity <TSnapshot> bfe)
        {
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            SafetyUtility.Replace(ref bfe, SafetyHandle);
#endif
        }