1
0
forked from cgvr/DeltaVR

radio button is pressable only when radio is held

This commit is contained in:
2026-03-12 16:10:49 +02:00
parent d969d3b77c
commit d85953e02f
5 changed files with 11 additions and 7 deletions

View File

@@ -54,6 +54,12 @@ public class RadioTransmitter : XRGrabInteractable
radioButton.Unlock();
}
protected override void OnSelectExited(SelectExitEventArgs args)
{
base.OnSelectExited(args);
radioButton.Lock();
}
private void OnRadioButtonPressed()
{
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.RadioButton, gameObject);

View File

@@ -32,7 +32,6 @@ public class TwoHandScaleGrabInteractable : XRGrabInteractable
protected override void OnSelectExited(SelectExitEventArgs args)
{
Debug.Log("current local scale: " + transform.localScale);
base.OnSelectExited(args);
UpdateTwoHandState();
}