Explorar o código

16g和64g坐标轴切换

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

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

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