Просмотр исходного кода

暂时关闭-设备连接检测

lvjincheng 4 лет назад
Родитель
Сommit
457279869c

+ 0 - 5
Assets/BowArrow/Scripts/Bluetooth/AimHandler.cs

@@ -295,11 +295,6 @@ public class AimHandler : MonoBehaviour
 
         AMesh.transform.localRotation = newRotation = _9Axis.Update(Acc * 10, Gyr, Mag, TimeGap);
 
-        // 游戏处于暂停状态时,Update插值会失效,因此需要主动赋值新的角度
-        if (GameMgr.ins && GameMgr.ins.gamePause) {
-            controlObj.localRotation = newRotation;
-        }
-
         // 记录一些旋转角---start
         if (ArmBow.ins) {
             for (int i = ArmBow.ins.recordRotations.Length - 1; i > 0 ; i--)

+ 6 - 0
Assets/BowArrow/Scripts/View/DeviceReconnectView.cs

@@ -36,6 +36,12 @@ public class DeviceReconnectView : MonoBehaviour
     {
         InitBtnForConnect();
         GameMgr.ins.addLockerForGamePause(this);
+
+        //debug不做连接检测
+        Destroy(this.gameObject);
+        if (onComplete != null) {
+            onComplete();   
+        }
     }
 
     void OnDestroy()