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
        }
Exemplo n.º 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
        }
Exemplo n.º 3
0
        public void SetEmptySafetyHandle(ref BufferFromEntity <TSnapshot> bfe)
        {
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            SafetyUtility.Replace(ref bfe, SafetyHandle);
#endif
        }