Updated TurnBaseCombat for Keyboard Hotkeys

Crit Feedback
This commit is contained in:
Philip W 2022-11-24 02:49:37 +00:00
parent c6cba80a07
commit 06492d69d5
9 changed files with 32 additions and 9 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Content/Blueprints/Combat_UI/__RealTime/Combat_UI_RT.uasset (Stored with Git LFS) Normal file

Binary file not shown.

Binary file not shown.

View File

@ -43,6 +43,16 @@ void ATurnBaseCombatV2::EndCombat()
PlayerPawn->bUseControllerRotationPitch = true;
}
void ATurnBaseCombatV2::FKeyPressed()
{
FButtonOnClick();
}
void ATurnBaseCombatV2::WKeyPressed()
{
WButtonOnClick();
}
void ATurnBaseCombatV2::BeginPlay()
{
Super::BeginPlay();

View File

@ -59,6 +59,10 @@ public:
void StartCombat(AActor* Enemy);
UFUNCTION(BlueprintCallable)
void EndCombat();
UFUNCTION(BlueprintCallable)
void FKeyPressed();
UFUNCTION(BlueprintCallable)
void WKeyPressed();
protected:
virtual void BeginPlay() override;