Updated HoldToInitCombat for Unreal Naming Conventions
This commit is contained in:
parent
cd17363421
commit
8b2b9d56cb
@ -24,11 +24,11 @@ void UHoldToInitCombat::BeginPlay()
|
|||||||
Super::BeginPlay();
|
Super::BeginPlay();
|
||||||
InitCombatWidget = CreateWidget<UUserWidget>(GetWorld(), InitCombatWidgetClass);
|
InitCombatWidget = CreateWidget<UUserWidget>(GetWorld(), InitCombatWidgetClass);
|
||||||
|
|
||||||
UInputComponent* playerInputComponent = GetWorld()->GetFirstPlayerController()->InputComponent;
|
UInputComponent* PlayerInputComponent = GetWorld()->GetFirstPlayerController()->InputComponent;
|
||||||
//Bind Right Mouse Button to the function OnRightClickDown
|
//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
|
//Bind Right Mouse Button to the function OnRightClickUp
|
||||||
playerInputComponent->BindAction("RightClick", IE_Released, this, &UHoldToInitCombat::OnRightClickUp);
|
PlayerInputComponent->BindAction("RightClick", IE_Released, this, &UHoldToInitCombat::OnRightClickUp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user