Ejemplo n.º 1
0
        private void RefreshPairedDevices(List <HapticDevice> devices)
        {
            foreach (var device in devices)
            {
                if (device.IsPaired)
                {
                    var ui = settingObjectPool.GetPairedDeviceUI();
                    if (ui == null)
                    {
                        continue;
                    }

                    ui.Refresh(device, WidgetSetting);
                    ui.gameObject.SetActive(true);
                }
            }
        }
Ejemplo n.º 2
0
        private void PairedUiRefresh(List <BhapticsDevice> devices)
        {
            foreach (var device in devices)
            {
                if (device.IsPaired)
                {
                    bool isConnect = (AndroidWidget_CompareDeviceString.convertConnectionStatus(device.ConnectionStatus) == 0);

                    AndroidWidget_PairedDeviceUI deviceUI = settingObjectPool.GetPairedDeviceUI();
                    if (deviceUI != null)
                    {
                        deviceUI.Setup(device, isConnect, GetPairedDeviceSprite(device.DeviceName, isConnect));
                        deviceUI.gameObject.SetActive(true);
                    }
                }
            }
        }