Updated BaseItem, TempCharacter

Removed more unused code to make the scripts more readable and optimized.
This commit is contained in:
MH261677 2022-11-18 19:25:10 +00:00
parent ba2b6b599c
commit cb9c2bcb27
3 changed files with 0 additions and 14 deletions

View File

@ -60,7 +60,4 @@ public:
//This is the same as the use item class but its in BP instead
UFUNCTION(BlueprintImplementableEvent)
void OnUse(class ATempCharacter* Character);
UFUNCTION(BlueprintImplementableEvent)
void OnBuy(class ATempCharacter* PurchaseItem);
};

View File

@ -110,11 +110,3 @@ void ATempCharacter::UseItem(class UBaseItem* Item)
}
}
void ATempCharacter::BuyItem(UBaseItem* BuyItem)
{
if(BuyItem)
{
BuyItem->Buy(this);
BuyItem->OnBuy(this);
}
}

View File

@ -51,9 +51,6 @@ public:
UFUNCTION(BlueprintCallable, Category= "Items")
void UseItem(class UBaseItem* Item); // Overriding the BaseItem Class
UFUNCTION(BlueprintCallable, Category= "Items")
void BuyItem(class UBaseItem* BuyItem);
UPROPERTY(EditAnywhere, Category= "Items")
UBaseItem* ItemToBuy;
};