Updated InventoryComponent,TempCharacter

Commented InventoryComponent to understand logic easier and removed unused functions from TempCharacter
This commit is contained in:
MH261677 2022-11-29 12:43:58 +00:00
parent 120da84a3e
commit 2a590c3e33
2 changed files with 1 additions and 3 deletions

View File

@ -22,6 +22,7 @@ void UInventoryComponent::BeginPlay()
{
Super::BeginPlay();
//activates the AddItem function for every DefaultItem that inherits BaseItem
for(auto & BaseItem : DefaultItems)
{
AddItem(BaseItem);

View File

@ -53,7 +53,4 @@ public:
//Using the item in the inventory
UFUNCTION(BlueprintCallable, Category= "Items")
void UseItem(class UBaseItem* Item); // Overriding the BaseItem Class
UPROPERTY(EditAnywhere, Category= "Items")
UBaseItem* ItemToBuy;
};