private void EnableRadio() { if (!_masterDevice.setUpdateRate(Hz)) { throw new UnityException("failed to set update rate " + Hz); } if (_masterDevice.isRadioEnabled()) { _masterDevice.disableRadio(); } if (_masterDevice.enableRadio(RadioChannel)) { UnityEngine.Debug.Log("radio enabled successfully"); } else { throw new UnityException("could not enable radio"); } }