Updated BaseItem, TempCharacter
Removed more unused code to make the scripts more readable and optimized.
This commit is contained in:
parent
ba2b6b599c
commit
cb9c2bcb27
@ -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);
|
||||
};
|
||||
|
@ -110,11 +110,3 @@ void ATempCharacter::UseItem(class UBaseItem* Item)
|
||||
}
|
||||
}
|
||||
|
||||
void ATempCharacter::BuyItem(UBaseItem* BuyItem)
|
||||
{
|
||||
if(BuyItem)
|
||||
{
|
||||
BuyItem->Buy(this);
|
||||
BuyItem->OnBuy(this);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user