コード例 #1
0
        void OnPairFailed()
        {
            SetCurrent(_handle_bg_3);
            _btnPair.SetActive(true);
            _btnUnpair.SetActive(false);
            SetDeviceName("");

            // Notify the system to stop boot pair
            DpnDaydreamController.StopBootPair();
        }
コード例 #2
0
        void OnPairSucceed()
        {
            _paired = true;
            _btnPair.SetActive(false);
            _btnUnpair.SetActive(true);
            SetCurrent(_handle_bg_4);

            if (_bootPairOvertime != null)
            {
                StopCoroutine(_bootPairOvertime);
                _bootPairOvertime = null;
            }

            // Notify the system to stop boot pair
            DpnDaydreamController.StopBootPair();

            // get paired device name
            string name = DpnDaydreamController.GetBondDeviceName();

            SetDeviceName(name);
        }