Updated TempCharacter.cpp
Fixed the tracedistance not defaulting back once the player exits the shop
This commit is contained in:
parent
355dd06aae
commit
e15a7076c4
@ -150,6 +150,7 @@ void ATempCharacter::InputEnabler()
|
|||||||
GetWorld()->GetFirstPlayerController()->bShowMouseCursor = false;
|
GetWorld()->GetFirstPlayerController()->bShowMouseCursor = false;
|
||||||
GetWorld()->GetFirstPlayerController()->bEnableClickEvents = false;
|
GetWorld()->GetFirstPlayerController()->bEnableClickEvents = false;
|
||||||
GetWorld()->GetFirstPlayerController()->bEnableMouseOverEvents = false;
|
GetWorld()->GetFirstPlayerController()->bEnableMouseOverEvents = false;
|
||||||
|
TraceDistance = 200;
|
||||||
ThisCamera = Cast<UCameraComponent>(this->FindComponentByClass<UCameraComponent>());
|
ThisCamera = Cast<UCameraComponent>(this->FindComponentByClass<UCameraComponent>());
|
||||||
if (ThisCamera == nullptr)
|
if (ThisCamera == nullptr)
|
||||||
{
|
{
|
||||||
|
@ -69,6 +69,7 @@ public:
|
|||||||
|
|
||||||
int OriginalCameraFOV;
|
int OriginalCameraFOV;
|
||||||
|
|
||||||
UFUNCTION(BlueprintCallable, Category= "Items")
|
UFUNCTION(BlueprintCallable, Category= "Items")
|
||||||
void BuyItem();
|
void BuyItem();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user