Merge remote-tracking branch 'origin/main' into SP3-2-Physics

This commit is contained in:
Diren D Bharwani 2022-10-31 17:33:27 +08:00
commit 90bcae03a8
1 changed files with 7 additions and 0 deletions

View File

@ -40,6 +40,12 @@ namespace SHADE
{
comp->OnDestroy();
}
SHComponentRemovedEvent eventData;
eventData.eid = entityID;
eventData.removedComponentType = i;
SHEventManager::BroadcastEvent<SHComponentRemovedEvent>(eventData, SH_COMPONENT_REMOVED_EVENT);
}
@ -53,6 +59,7 @@ namespace SHADE
//entityHandle.RemoveHandle(entityID);
}