Add getter for player CameraComponent
This commit is contained in:
parent
fdfa37a346
commit
a43ec2c068
|
@ -826,3 +826,8 @@ void APlayerCharacter::SetIsThrowing(bool bIsThrowing)
|
|||
{
|
||||
IsThrowing = bIsThrowing;
|
||||
}
|
||||
|
||||
UCameraComponent* APlayerCharacter::GetCameraComponent()
|
||||
{
|
||||
return CameraComponent;
|
||||
}
|
||||
|
|
|
@ -242,6 +242,8 @@ public:
|
|||
UFUNCTION(BlueprintCallable)
|
||||
void SetIsThrowing(bool bIsThrowing);
|
||||
|
||||
UCameraComponent* GetCameraComponent();
|
||||
|
||||
protected:
|
||||
virtual void CalculateHits(TArray<FHitResult>* hits, FVector* dir) override;
|
||||
|
||||
|
|
Loading…
Reference in New Issue