Updated InventoryComponent,TempCharacter
Commented InventoryComponent to understand logic easier and removed unused functions from TempCharacter
This commit is contained in:
parent
120da84a3e
commit
2a590c3e33
@ -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);
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user