Skip to content

Commit

Permalink
Remove unnecessary click logic
Browse files Browse the repository at this point in the history
  • Loading branch information
RedBigz committed Nov 17, 2024
1 parent 2607d74 commit b2e9761
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions TABGVR/Player/VRControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,7 @@ private void Update()
{
if (!_rightTriggered)
{
if (UIPorter.UIRightHand.GetComponent<XRRayInteractor>()
.TryGetCurrentUIRaycastResult(out var uiRaycast))
{
var handler = uiRaycast.gameObject.GetComponent<IPointerClickHandler>();
handler?.OnPointerClick(new PointerEventData(EventSystem.current));
}
else if (weaponHandler.rightWeapon) weaponHandler.PressAttack(true, false);
if (weaponHandler.rightWeapon) weaponHandler.PressAttack(true, false);
else PickupInteract();
}
else if (weaponHandler.rightWeapon)
Expand Down

0 comments on commit b2e9761

Please sign in to comment.