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; panelCanvasGroup.transform.localEulerAngles = childCanvasOffscreenDefaultRot;
// Show left/right arrows // Show left/right arrows
if (activeCharScreenPosition == CharScreenPosition.OffToLeft) if (!dontFollowCharacter)
UpdateArrow(ArrowDirection.Left); {
if (activeCharScreenPosition == CharScreenPosition.OffToLeft)
UpdateArrow(ArrowDirection.Left);
else
UpdateArrow(ArrowDirection.Right);
}
else else
UpdateArrow(ArrowDirection.Right); {
UpdateArrow(ArrowDirection.Off);
}
} }
else // otherwise we'll position the subtitle UI next to the character, locked in pos else // otherwise we'll position the subtitle UI next to the character, locked in pos
{ {