Don't show arrows facing towards character if dontFollowCharacter is true

This commit is contained in:
Robbie Cargill 2024-01-07 17:05:54 +00:00
parent 2d0f41242f
commit a90a9adc28
1 changed files with 10 additions and 3 deletions

View File

@ -320,10 +320,17 @@ namespace R0bbie.VRSubtitles
panelCanvasGroup.transform.localEulerAngles = childCanvasOffscreenDefaultRot;
// Show left/right arrows
if (activeCharScreenPosition == CharScreenPosition.OffToLeft)
UpdateArrow(ArrowDirection.Left);
if (!dontFollowCharacter)
{
if (activeCharScreenPosition == CharScreenPosition.OffToLeft)
UpdateArrow(ArrowDirection.Left);
else
UpdateArrow(ArrowDirection.Right);
}
else
UpdateArrow(ArrowDirection.Right);
{
UpdateArrow(ArrowDirection.Off);
}
}
else // otherwise we'll position the subtitle UI next to the character, locked in pos
{