public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, Entity entity) { var buffer = wrapper.AddBuffer <T>(entity); foreach (var item in m_elements) { buffer.Add(item); } }
public void Process(EntityManagerWrapper wrapper, EntityVariableMap variables, ref EntityBuilderData data) { if (m_callback != null) { m_callback?.Invoke(wrapper); } else { var buffer = wrapper.AddBuffer <T>(data.entity); if (m_elements != null) { foreach (var element in m_elements) { buffer.Add(element); } } } }