Ejemplo n.º 1
0
 void OnConnected(BluetoothHelper helper)
 {
     sphere.GetComponent <Renderer>().material.color = Color.green;
     try
     {
         helper.StartListening();
         if (helper.getId() == bluetoothHelper.getId()) //1st instance connected, connect the second
         {
             bluetoothHelper2.ScanNearbyDevices();
         }
     }
     catch (Exception ex)
     {
         Debug.Log(ex.Message);
     }
 }