Skip to content
Snippets Groups Projects
Commit 5542dd72 authored by Denys Kuznietsov's avatar Denys Kuznietsov
Browse files

Cleaned-up visibility and conditions;

parent 12748e30
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ void UVHPointing::TickComponent(float DeltaTime, ELevelTick TickType, FActorComp
}
else
{
VH_ERROR("[UVHPointing::BeginPlay] No VHAnimInstance component attached");
VH_ERROR("[UVHPointing::TickComponent] No VHAnimInstance component attached");
}
}
else
......@@ -54,12 +54,16 @@ void UVHPointing::TickComponent(float DeltaTime, ELevelTick TickType, FActorComp
if (AngleLeftRight > 0) {
VHAnimInstance->PointingUseHand = EPointingHand::HandLeft;
}
else if (AngleLeftRight < 0)
else
{
VHAnimInstance->PointingUseHand = EPointingHand::HandRight;
}
}
}
else
{
VHAnimInstance->PointingUseHand = EPointingHand::HandNone;
}
}
......
......@@ -42,7 +42,7 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite)
FRotator SkelControl_Head = FRotator(0.0f, 0.0f, 0.0f);
UPROPERTY(EditAnywhere, BlueprintReadWrite)
UPROPERTY(VisibleAnywhere, BlueprintReadWrite)
TEnumAsByte<EPointingHand> PointingUseHand = EPointingHand::HandNone;
UPROPERTY(EditAnywhere, BlueprintReadWrite)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment