Don't show arrows facing towards character if dontFollowCharacter is true
This commit is contained in:
parent
2d0f41242f
commit
a90a9adc28
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue