Pārlūkot izejas kodu

64g箭轴切换

yichael 4 gadi atpakaļ
vecāks
revīzija
6896ecfa27
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  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();