コード例 #1
0
        private void TrySetHandsActive(bool active)
        {
            if (mAvatar != null)
            {
                if (OVRUtils.IsGearVRHeadset())
                {
                    if (OVRInput.GetActiveController() == OVRInput.Controller.Touchpad)
                    {
                        active = false;
                    }
                }

                mAvatar.SetHandsActive(active);
            }
        }
コード例 #2
0
#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();
        }