Updated RealTimeCombat to Disable Cursor in Combat

This commit is contained in:
Philip W 2022-11-17 03:48:56 +00:00
parent 89e9e58453
commit 55607a594a

View File

@ -26,12 +26,12 @@ void ARealTimeCombat::StartCombat(AActor* Enemy)
HUD->AddToViewport();
EnemyActor = Enemy;
if (APlayerController* PC = Cast<APlayerController>(GetWorld()->GetFirstPlayerController()))
{
PC->bShowMouseCursor = true;
PC->bEnableClickEvents = true;
PC->bEnableMouseOverEvents = true;
}
// if (APlayerController* PC = Cast<APlayerController>(GetWorld()->GetFirstPlayerController()))
// {
// PC->bShowMouseCursor = true;
// PC->bEnableClickEvents = true;
// PC->bEnableMouseOverEvents = true;
// }
}
void ARealTimeCombat::EndCombat()