internal void EntityDeselected() { if (entityInformationView.currentEntity == null) { return; } if (entityInformationView.currentEntity.rootEntity.TryGetBaseComponent(CLASS_ID_COMPONENT.SMART_ITEM, out IEntityComponent component)) { SmartItemComponent smartItemComponent = (SmartItemComponent)component; OnSmartItemComponentUpdate?.Invoke(entityInformationView.currentEntity); } }
public void EntityDeselected() { if (currentEntity == null) { return; } if (currentEntity.rootEntity.TryGetBaseComponent(CLASS_ID_COMPONENT.SMART_ITEM, out BaseComponent component)) { SmartItemComponent smartItemComponent = (SmartItemComponent)component; OnSmartItemComponentUpdate?.Invoke(currentEntity); } }
internal void EntityDeselected() { if (entityInformationView.currentEntity == null) { return; } if (entityInformationView.currentEntity.rootEntity.TryGetBaseComponent(CLASS_ID_COMPONENT.SMART_ITEM, out IEntityComponent component)) { //TODO: we do an early return since the smart item component is not implemented yet return; SmartItemComponent smartItemComponent = (SmartItemComponent)component; OnSmartItemComponentUpdate?.Invoke(entityInformationView.currentEntity); } }