Example #1
0
    // check if ui interaction is happening
    private void Update()
    {
        CheckForUI();

        // click ui if possible
        if (OVRInput.Get(OVRInput.Button.PrimaryIndexTrigger, controller) && canClick && currentSelected != null)
        {
            canClick = false;
            currentSelected.OnClick();
            currentSelected.OnExit();
            currentSelected = null;
            StartCoroutine(ResetClick());
        }
    }
Example #2
0
    // check if ui interaction is happening
    private void Update()
    {
        CheckForUI();

        // click ui if possible
        if (InputBridgeBase.instance.Interact && canClick && currentSelected != null)
        {
            canClick = false;
            currentSelected.OnClick();
            currentSelected.OnExit();
            currentSelected = null;
            StartCoroutine(ResetClick());
        }
    }