Updated HoldToInitCombat for Unreal Naming Conventions

This commit is contained in:
Philip W 2023-01-30 23:03:50 +00:00
parent cd17363421
commit 8b2b9d56cb

View File

@ -24,11 +24,11 @@ void UHoldToInitCombat::BeginPlay()
Super::BeginPlay();
InitCombatWidget = CreateWidget<UUserWidget>(GetWorld(), InitCombatWidgetClass);
UInputComponent* playerInputComponent = GetWorld()->GetFirstPlayerController()->InputComponent;
UInputComponent* PlayerInputComponent = GetWorld()->GetFirstPlayerController()->InputComponent;
//Bind Right Mouse Button to the function OnRightClickDown
playerInputComponent->BindAction("RightClick", IE_Pressed, this, &UHoldToInitCombat::OnRightClickDown);
PlayerInputComponent->BindAction("RightClick", IE_Pressed, this, &UHoldToInitCombat::OnRightClickDown);
//Bind Right Mouse Button to the function OnRightClickUp
playerInputComponent->BindAction("RightClick", IE_Released, this, &UHoldToInitCombat::OnRightClickUp);
PlayerInputComponent->BindAction("RightClick", IE_Released, this, &UHoldToInitCombat::OnRightClickUp);
}