/// <inheritdoc /> public override void AddComponent(AddComponentPipelineOp addComponentOp) { var entityId = addComponentOp.EntityId; if (!universe.ContainsEntity(entityId)) { Debug.LogError("EntityComponentUpdater::AddComponent: Entity not present: " + entityId); return; } var entity = universe.Get(entityId); entity.OnAddComponentPipelineOp(addComponentOp); NextEntityBlock.AddComponent(addComponentOp); }
private void OnError(EntityId entityId, Exception ex) { GameObject context = null; var entityObject = universe.Get(entityId); if (entityObject != null) { context = entityObject.UnderlyingGameObject; } Debug.LogException(ex, context); }