Updated TempCharacter to remove unused Ulogs

This commit is contained in:
MARCEL HARA 2023-02-23 15:19:32 +00:00
parent fb0bd09bb2
commit 119b5a141a
3 changed files with 6 additions and 8 deletions

Binary file not shown.

Binary file not shown.

View File

@ -140,7 +140,6 @@ void ATempCharacter::LineTraceLogic()
} }
if(OutHit.GetActor()->FindComponentByClass<UInventoryComponent>()) if(OutHit.GetActor()->FindComponentByClass<UInventoryComponent>())
{ {
UE_LOG(LogTemp, Display, TEXT("Hit Merchant"));
auto ItemArray = OutHit.GetActor()->FindComponentByClass<UInventoryComponent>()->GetItem(0); auto ItemArray = OutHit.GetActor()->FindComponentByClass<UInventoryComponent>()->GetItem(0);
if(GoldBalance >= ItemArray->ItemCostPrice) if(GoldBalance >= ItemArray->ItemCostPrice)
{ {
@ -150,10 +149,11 @@ void ATempCharacter::LineTraceLogic()
} }
if(GoldBalance <= 0) if(GoldBalance <= 0)
{ {
UE_LOG(LogTemp, Display, TEXT("Not Enough Gold")); return;
} }
if(OutHit.GetActor()->ActorHasTag(Ammo)) if(OutHit.GetActor()->ActorHasTag(Ammo))
{ {
UE_LOG(LogTemp, Display, TEXT("Ammo destroy func activated"));
OutHit.GetActor()->Destroy(); OutHit.GetActor()->Destroy();
} }
} }
@ -163,7 +163,6 @@ void ATempCharacter::LineTraceLogic()
{ {
if (MyInteractable->ShopDialogWidget->IsVisible()) if (MyInteractable->ShopDialogWidget->IsVisible())
{ {
UE_LOG(LogTemp, Display, TEXT("ShopKeeper text is visible"));
bShopKeeperText = true; bShopKeeperText = true;
return; return;
} }
@ -178,7 +177,6 @@ void ATempCharacter::LineTraceLogic()
{ {
DrawDebugLine(GetWorld(), Start, End, FColor::Green, false, 1.0f); DrawDebugLine(GetWorld(), Start, End, FColor::Green, false, 1.0f);
MyInteractable->OnInteract(); MyInteractable->OnInteract();
UE_LOG(LogTemp, Display, TEXT("OnInteract activated"));
UE_LOG(LogTemp, Display, TEXT("HIT: %s"), *OutHit.GetActor()->GetName()); UE_LOG(LogTemp, Display, TEXT("HIT: %s"), *OutHit.GetActor()->GetName());
// While loop to check bisDisabled var until it changes to true // While loop to check bisDisabled var until it changes to true