I don't know why UpdateEntity function trigger all the three callback。what if just trigger OnEntityUpdated,Will this lead to other problems?
Here's some code
/// This is used by the context to manage the group.
public void UpdateEntity(TEntity entity, int index, IComponent previousComponent, IComponent newComponent) {
if (_entities.Contains(entity)) {
if (OnEntityRemoved != null) {
OnEntityRemoved(this, entity, index, previousComponent);
}
if (OnEntityAdded != null) {
OnEntityAdded(this, entity, index, newComponent);
}
if (OnEntityUpdated != null) {
OnEntityUpdated(
this, entity, index, previousComponent, newComponent
);
}
}
}
Hi,
I don't know why UpdateEntity function trigger all the three callback。what if just trigger OnEntityUpdated,Will this lead to other problems?
Here's some code
Cheers