コード例 #1
0
ファイル: NVRHand.cs プロジェクト: trebuchet-inc/JamNation
        protected virtual void Update()
        {
            if (CurrentHandState == HandState.Uninitialized)
            {
                if (InputDevice == null || InputDevice.ReadyToInitialize() == false)
                {
                    return;
                }
                else
                {
                    Initialize();
                    return;
                }
            }

            UpdateButtonStates();

            if (!Freeze)
            {
                UpdateInteractions();
            }
            else if (CurrentlyInteracting != null)
            {
                EndInteraction(CurrentlyInteracting);
            }

            UpdateHovering();

            UpdateVisibilityAndColliders();
        }
コード例 #2
0
        protected virtual void Update()
        {
            if (CurrentHandState == HandState.Uninitialized)
            {
                if (InputDevice == null || InputDevice.ReadyToInitialize() == false)
                {
                    return;
                }
                else
                {
                    Initialize();
                    //UpdateOculusController();
                    return;
                }
            }

            UpdateButtonStates();

            UpdateInteractions();

            UpdateHovering();

            UpdateVisibilityAndColliders();
        }