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