Browse Source

Merge branch 'master' of http://81.70.224.233:10080/yichael/SmartBow

lvjincheng 4 năm trước cách đây
mục cha
commit
fd5e0ca59a
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      Assets/BowArrow/Scripts/Bluetooth/ShootCheck.cs

+ 6 - 0
Assets/BowArrow/Scripts/Bluetooth/ShootCheck.cs

@@ -115,6 +115,12 @@ public class ShootCheck : MonoBehaviour
     }
     public void OnBluetoothReady(BluetoothShoot bluetoothShoot) 
     {
+        if (LoginMgr.myUserInfo.arrowAccValue == 16) {
+            cmd.a = "y";
+        }
+        else{
+            cmd.a = "x";
+        }
         bluetoothShoot.WriteData(JsonUtility.ToJson(cmd).Replace("\"", ""));
 
         Sequence sequence = DOTween.Sequence();