Add Get EXPComponent function
This commit is contained in:
parent
e8d7c49a4e
commit
0092c3831f
|
@ -74,6 +74,11 @@ void APlayerCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputCom
|
|||
}
|
||||
}
|
||||
|
||||
UEXPComponent* APlayerCharacter::GetEXPComponent()
|
||||
{
|
||||
return EXPComponent;
|
||||
}
|
||||
|
||||
void APlayerCharacter::MovementCallback(const FInputActionInstance& Instance)
|
||||
{
|
||||
FVector2D vec2 = Instance.GetValue().Get<FVector2D>();
|
||||
|
|
|
@ -67,6 +67,8 @@ protected:
|
|||
public:
|
||||
virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override;
|
||||
|
||||
UEXPComponent* GetEXPComponent();
|
||||
|
||||
private:
|
||||
UFUNCTION()
|
||||
void MovementCallback(const FInputActionInstance& Instance);
|
||||
|
|
Loading…
Reference in New Issue