Updated RealTimeCombat to Disable Cursor in Combat
This commit is contained in:
parent
89e9e58453
commit
55607a594a
@ -26,12 +26,12 @@ void ARealTimeCombat::StartCombat(AActor* Enemy)
|
|||||||
HUD->AddToViewport();
|
HUD->AddToViewport();
|
||||||
EnemyActor = Enemy;
|
EnemyActor = Enemy;
|
||||||
|
|
||||||
if (APlayerController* PC = Cast<APlayerController>(GetWorld()->GetFirstPlayerController()))
|
// if (APlayerController* PC = Cast<APlayerController>(GetWorld()->GetFirstPlayerController()))
|
||||||
{
|
// {
|
||||||
PC->bShowMouseCursor = true;
|
// PC->bShowMouseCursor = true;
|
||||||
PC->bEnableClickEvents = true;
|
// PC->bEnableClickEvents = true;
|
||||||
PC->bEnableMouseOverEvents = true;
|
// PC->bEnableMouseOverEvents = true;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
void ARealTimeCombat::EndCombat()
|
void ARealTimeCombat::EndCombat()
|
||||||
|
Loading…
Reference in New Issue
Block a user