Exemple #1
0
 public void ExtractJobDependencyTypes(ComponentSystemBase system)
 {
     if (this.m_InjectComponentDataFromEntity != null)
     {
         foreach (InjectionData data in this.m_InjectComponentDataFromEntity)
         {
             system.AddReaderWriter(data.ComponentType);
         }
     }
     if (this.m_InjectBufferFromEntity != null)
     {
         foreach (InjectionData data2 in this.m_InjectBufferFromEntity)
         {
             system.AddReaderWriter(data2.ComponentType);
         }
     }
 }
        public void ExtractJobDependencyTypes(ComponentSystemBase system)
        {
            if (m_InjectComponentDataFromEntity != null)
            {
                foreach (var injection in m_InjectComponentDataFromEntity)
                {
                    system.AddReaderWriter(injection.ComponentType);
                }
            }

            if (m_InjectBufferFromEntity != null)
            {
                foreach (var injection in m_InjectBufferFromEntity)
                {
                    system.AddReaderWriter(injection.ComponentType);
                }
            }
        }