private void Update() { if (AirVRClientGvrControllerSwipeInput.Up || Input.GetKeyDown(KeyCode.UpArrow)) { _inputUserID.gameObject.SetActive(!_inputUserID.gameObject.activeSelf); } if (_numberPad.gameObject.activeSelf) { if (GvrControllerInput.ClickButtonDown || GvrControllerInput.AppButtonDown || Input.GetKeyDown(KeyCode.LeftControl)) { if (!_numberPadPointerOver.IsPointerOver) { if (!_addressPointerOver.IsPointerOver && !_portPointerOver.IsPointerOver && !_userIDPointerOver.IsPointerOver) { _numberPad.Hide(); SetAllInputFieldUnfocus(); } } } } }
private void Update() { if (OVRInput.GetDown(OVRInput.Button.Up) || Input.GetKeyDown(KeyCode.UpArrow)) { _inputUserID.gameObject.SetActive(!_inputUserID.gameObject.activeSelf); } if (_numberPad.gameObject.activeSelf) { if (OVRInput.GetDown(OVRInput.Button.One) || OVRInput.GetDown(OVRInput.Button.Back) || Input.GetKeyDown(KeyCode.LeftControl)) { if (!_numberPadPointerOver.IsPointerOver) { if (!_addressPointerOver.IsPointerOver && !_portPointerOver.IsPointerOver && !_userIDPointerOver.IsPointerOver) { _numberPad.Hide(); SetAllInputFieldUnfocus(); } } } } }