lvjincheng 4 лет назад
Родитель
Сommit
8e882323a4
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      Assets/BowArrow/Scripts/Bluetooth/BluetoothShoot.cs

+ 1 - 3
Assets/BowArrow/Scripts/Bluetooth/BluetoothShoot.cs

@@ -4,7 +4,6 @@ using UnityEngine;
 using UnityEngine.UI;
 using UnityEngine.UI;
 using ArduinoBluetoothAPI;
 using ArduinoBluetoothAPI;
 using DG.Tweening;
 using DG.Tweening;
-using System.Text;
 
 
 public class BluetoothShoot : MonoBehaviour
 public class BluetoothShoot : MonoBehaviour
 {
 {
@@ -90,8 +89,7 @@ public class BluetoothShoot : MonoBehaviour
                 if(bFirstIn)
                 if(bFirstIn)
                 {
                 {
                     bFirstIn = false;
                     bFirstIn = false;
-                    string s = Encoding.ASCII.GetString(bytes);
-                    Debug.Log("value======="+s);
+                    Log(String.Join(",", bytes));
                     return;
                     return;
                 }
                 }