deleted method
Called when an entity
is being deleted from the world.
Implementation
@override
void deleted(Entity entity) {
final removedTag = _tagsByEntity.remove(entity);
if (removedTag != null) {
_entitiesByTag.remove(removedTag);
}
}