Updated TempCharacter to remove unused Ulogs
This commit is contained in:
parent
fb0bd09bb2
commit
119b5a141a
BIN
Content/Blueprints/Combat_UI/CombatCharacter.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Combat_UI/CombatCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
Content/Blueprints/Player/BP_MyTempCharacter.uasset
(Stored with Git LFS)
BIN
Content/Blueprints/Player/BP_MyTempCharacter.uasset
(Stored with Git LFS)
Binary file not shown.
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user