Explorar o código

16G和64G切换

lvjincheng %!s(int64=4) %!d(string=hai) anos
pai
achega
0d46cfc87d
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      Assets/BowArrow/Scripts/Bluetooth/ShootCheck.cs

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

@@ -115,6 +115,15 @@ 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();