diff --git a/Assets/Plugins/iOS/UnityBluetoothLE.mm b/Assets/Plugins/iOS/UnityBluetoothLE.mm index e794b768..9e97a5ff 100644 --- a/Assets/Plugins/iOS/UnityBluetoothLE.mm +++ b/Assets/Plugins/iOS/UnityBluetoothLE.mm @@ -795,9 +795,11 @@ extern "C" { - (void)centralManager:(CBCentralManager *)central didFailToConnectPeripheral:(CBPeripheral *)peripheral error:(NSError *)error { + NSLog(@"ConnectionError~~connectPeripheral:peripheral "); if (error) { - NSString *message = [NSString stringWithFormat:@"Error~%@", error.description]; + NSString *identifier = [[peripheral identifier] UUIDString]; + NSString *message = [NSString stringWithFormat:@"ConnectionError~%@~%@",identifier,error.description]; UnitySendMessage ("BluetoothLEReceiver", "OnBluetoothMessage", [message UTF8String] ); } } diff --git a/Assets/Scripts/UI/Prefab/ResultList/ResultListController.cs b/Assets/Scripts/UI/Prefab/ResultList/ResultListController.cs index 279835d7..45a41c1a 100644 --- a/Assets/Scripts/UI/Prefab/ResultList/ResultListController.cs +++ b/Assets/Scripts/UI/Prefab/ResultList/ResultListController.cs @@ -96,7 +96,7 @@ public class ResultListController : PFUIPanel UIManager.AddEvent(matchScroll.gameObject, UnityEngine.EventSystems.EventTriggerType.EndDrag, OnEndDrag); } scrolls = new Transform[] { routeScroll, matchScroll}; - GetList(0); + //GetList(0); GetList(1); } @@ -157,7 +157,7 @@ public class ResultListController : PFUIPanel }; Dictionary pageIndex = new Dictionary { - {0,0 },{1,0 },{2,0 } + {0,0 },{1,0 } }; async void GetList(int? sindex = null) {