private void TrySetHandsActive(bool active) { if (mAvatar != null) { if (OVRUtils.IsGearVRHeadset()) { if (OVRInput.GetActiveController() == OVRInput.Controller.Touchpad) { active = false; } } mAvatar.SetHandsActive(active); } }
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member /// <summary> /// Create a GearVR device /// </summary> public GearVRDevice() { Headset = OVRUtils.IsGearVRHeadset() ? new GearVRHeadset() : GenericHeadset(); OVRInput.Update(); UpdateConnectedControllers(); }