forked from cgvr/DeltaVR
radio button is pressable only when radio is held
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user