Add GetGoldComponent function

This commit is contained in:
baz 2024-06-24 21:42:03 +01:00
parent 0092c3831f
commit 2d078ec48c
2 changed files with 7 additions and 0 deletions

View File

@ -79,6 +79,11 @@ UEXPComponent* APlayerCharacter::GetEXPComponent()
return EXPComponent;
}
UGoldComponent* APlayerCharacter::GetGoldComponent()
{
return GoldComponent;
}
void APlayerCharacter::MovementCallback(const FInputActionInstance& Instance)
{
FVector2D vec2 = Instance.GetValue().Get<FVector2D>();

View File

@ -69,6 +69,8 @@ public:
UEXPComponent* GetEXPComponent();
UGoldComponent* GetGoldComponent();
private:
UFUNCTION()
void MovementCallback(const FInputActionInstance& Instance);