Updated TempCharacter

Updated the buy function and made it more accessible to adding other items.
This commit is contained in:
MH261677 2022-11-18 13:28:22 +00:00
parent 900feee5a9
commit cee5188d47

View File

@ -79,7 +79,7 @@ void ATempCharacter::LineTraceLogic()
{
return;
}
if(OutHit.GetActor()->ActorHasTag("HealingJelly"))
if(OutHit.GetActor()->FindComponentByClass<UInventoryComponent>())
{
if(GoldBalance >= 100)
{