Add GetGoldComponent function
This commit is contained in:
parent
0092c3831f
commit
2d078ec48c
|
@ -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>();
|
||||
|
|
|
@ -69,6 +69,8 @@ public:
|
|||
|
||||
UEXPComponent* GetEXPComponent();
|
||||
|
||||
UGoldComponent* GetGoldComponent();
|
||||
|
||||
private:
|
||||
UFUNCTION()
|
||||
void MovementCallback(const FInputActionInstance& Instance);
|
||||
|
|
Loading…
Reference in New Issue