Add GetGoldComponent function
This commit is contained in:
parent
0092c3831f
commit
2d078ec48c
|
@ -79,6 +79,11 @@ UEXPComponent* APlayerCharacter::GetEXPComponent()
|
||||||
return EXPComponent;
|
return EXPComponent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
UGoldComponent* APlayerCharacter::GetGoldComponent()
|
||||||
|
{
|
||||||
|
return GoldComponent;
|
||||||
|
}
|
||||||
|
|
||||||
void APlayerCharacter::MovementCallback(const FInputActionInstance& Instance)
|
void APlayerCharacter::MovementCallback(const FInputActionInstance& Instance)
|
||||||
{
|
{
|
||||||
FVector2D vec2 = Instance.GetValue().Get<FVector2D>();
|
FVector2D vec2 = Instance.GetValue().Get<FVector2D>();
|
||||||
|
|
|
@ -69,6 +69,8 @@ public:
|
||||||
|
|
||||||
UEXPComponent* GetEXPComponent();
|
UEXPComponent* GetEXPComponent();
|
||||||
|
|
||||||
|
UGoldComponent* GetGoldComponent();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
UFUNCTION()
|
UFUNCTION()
|
||||||
void MovementCallback(const FInputActionInstance& Instance);
|
void MovementCallback(const FInputActionInstance& Instance);
|
||||||
|
|
Loading…
Reference in New Issue