InteractingUpdate() публичный Метод

public InteractingUpdate ( VRIHand hand ) : void
hand VRIHand
Результат void
Пример #1
0
        private void Update()
        {
            if (Controller == null || CurrentHandState == HandState.Uninitialized)
            {
                return;
            }

            HoldButtonPressed = Controller.GetPress(HoldButton);
            HoldButtonDown    = Controller.GetPressDown(HoldButton);
            HoldButtonUp      = Controller.GetPressUp(HoldButton);

            UseButtonPressed = Controller.GetPress(UseButton);
            UseButtonDown    = Controller.GetPressDown(UseButton);
            UseButtonUp      = Controller.GetPressUp(UseButton);

            if (HoldButtonDown == true)
            {
                if (CurrentlyInteracting == null)
                {
                    PickupClosest();
                }
            }
            else if (HoldButtonUp == true && CurrentlyInteracting != null)
            {
                EndInteraction(null);
            }

            if (IsInteracting == true)
            {
                CurrentlyInteracting.InteractingUpdate(this);
            }

            if (VRIPlayer.Instance.PhysicalHands == true)
            {
                UpdateVisibilityAndColliders();
            }
        }