Add Get EXPComponent function

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

View File

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

View File

@ -67,6 +67,8 @@ protected:
public: public:
virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override; virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override;
UEXPComponent* GetEXPComponent();
private: private:
UFUNCTION() UFUNCTION()
void MovementCallback(const FInputActionInstance& Instance); void MovementCallback(const FInputActionInstance& Instance);