예제 #1
0
 void BGW_ReceiveByteData_Done(object CustomData, UnityBackgroundWorkerInformation Information)
 {
     if (Information.Status == UnityBackgroundWorkerStatus.Done)
     {
         Debug.Log("BGW_ReceiveByteData_Done");
     }
     else if (Information.Status == UnityBackgroundWorkerStatus.Aborted)
     {
         Debug.Log("BGW_ReceiveByteData Aborted");
     }
     else if (Information.Status == UnityBackgroundWorkerStatus.HasError)
     {
         Debug.Log(Information.ErrorMessage);
     }
 }
예제 #2
0
 void BGW_DeviceConnector_Done(object CustomData, UnityBackgroundWorkerInformation Information)
 {
     if (Information.Status == UnityBackgroundWorkerStatus.Done)
     {
         Debug.Log("Done");
     }
     else if (Information.Status == UnityBackgroundWorkerStatus.Aborted)
     {
         Debug.Log("Aborted");
     }
     else if (Information.Status == UnityBackgroundWorkerStatus.HasError)
     {
         Debug.Log(Information.ErrorMessage);
     }
 }
예제 #3
0
 void BGW_DeviceFinder_Done(object CustomData, UnityBackgroundWorkerInformation Information)
 {
     isBTDevicesSearching = false;
     if (Information.Status == UnityBackgroundWorkerStatus.Done)
     {
         Debug.Log("Done");
     }
     else if (Information.Status == UnityBackgroundWorkerStatus.Aborted)
     {
         Debug.Log("Aborted");
     }
     else if (Information.Status == UnityBackgroundWorkerStatus.HasError)
     {
         Debug.Log(Information.ErrorMessage);
     }
 }
예제 #4
0
 /**
  * Cloture la fin de la vérification
  */
 void CheckDeviceDone(object CustomData, UnityBackgroundWorkerInformation Information)
 {
     isRunning = false;
 }
예제 #5
0
 /**
  * Cloture la fin de la recherche
  */
 void FindDevicesDone(object CustomData, UnityBackgroundWorkerInformation Information)
 {
     isDevicesSearching = false;
 }