소스 검색

16G和64G切换

lvjincheng 4 년 전
부모
커밋
0d46cfc87d
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  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();