mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-16 15:39:29 +00:00
Merge pull request #724 from SjaakAlvarez/develop
Entity.Detach() method doesn't invoke EntityChanged until next Update of EntityManager #723
This commit is contained in:
@@ -79,6 +79,8 @@ namespace MonoGame.Extended.Entities
|
||||
private void OnComponentsChanged(int entityId)
|
||||
{
|
||||
_changedEntities.Add(entityId);
|
||||
_entityToComponentBits[entityId] = _componentManager.CreateComponentBits(entityId);
|
||||
EntityChanged?.Invoke(entityId);
|
||||
}
|
||||
|
||||
public override void Update(GameTime gameTime)
|
||||
|
||||
Reference in New Issue
Block a user