ios连接错误回调信息微调
This commit is contained in:
parent
3e80edf0dc
commit
71ae54aabe
@ -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] );
|
||||
}
|
||||
}
|
||||
|
||||
@ -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<int, int> pageIndex = new Dictionary<int, int>
|
||||
{
|
||||
{0,0 },{1,0 },{2,0 }
|
||||
{0,0 },{1,0 }
|
||||
};
|
||||
async void GetList(int? sindex = null)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user