void UNavLinkCustomComponent::GetNavigationData(FNavigationRelevantData& Data) const
{
	FNavigationLink LinkMod = GetLinkModifier();
	Data.Modifiers.Add(FSimpleLinkNavModifier(LinkMod, GetOwner()->GetTransform()));

	if (bCreateBoxObstacle)
	{
		Data.Modifiers.Add(FAreaNavModifier(FBox::BuildAABB(ObstacleOffset, ObstacleExtent), GetOwner()->GetTransform(), ObstacleAreaClass));
	}
}
void USmartNavLinkComponent::OnApplyModifiers(FCompositeNavModifier& Modifiers)
{
	FNavigationLink LinkMod = GetLink();
	Modifiers.Add(FSimpleLinkNavModifier(LinkMod, GetOwner()->GetTransform()));

	if (bCreateBoxObstacle)
	{
		Modifiers.Add(FAreaNavModifier(FBox::BuildAABB(ObstacleOffset, ObstacleExtent), GetOwner()->GetTransform(), ObstacleAreaClass));
	}
}