فهرست منبع

游戏场景销毁时,要解除禁止九轴数据渲染。

lvjincheng 4 سال پیش
والد
کامیت
490d671bb6
2فایلهای تغییر یافته به همراه8 افزوده شده و 4 حذف شده
  1. 4 4
      Assets/BowArrow/Scenes/Game.unity
  2. 4 0
      Assets/BowArrow/Scripts/Manager/GameMgr.cs

+ 4 - 4
Assets/BowArrow/Scenes/Game.unity

@@ -9603,14 +9603,14 @@ RectTransform:
   m_GameObject: {fileID: 687712902}
   m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
   m_LocalPosition: {x: 0, y: 0, z: -0.1}
-  m_LocalScale: {x: 0.08, y: 0.1, z: 1}
+  m_LocalScale: {x: 0.07, y: 0.12, z: 1}
   m_Children: []
   m_Father: {fileID: 317472496}
   m_RootOrder: 1
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
-  m_AnchoredPosition: {x: -0.59, y: 2.434}
+  m_AnchoredPosition: {x: -0.59, y: 2.5}
   m_SizeDelta: {x: 160, y: 20}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &687712904
@@ -26027,14 +26027,14 @@ RectTransform:
   m_GameObject: {fileID: 1869291961}
   m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
   m_LocalPosition: {x: 0, y: 0, z: -0.1}
-  m_LocalScale: {x: 0.08, y: 0.1, z: 1}
+  m_LocalScale: {x: 0.07, y: 0.12, z: 1}
   m_Children: []
   m_Father: {fileID: 317472496}
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0.5, y: 0.5}
   m_AnchorMax: {x: 0.5, y: 0.5}
-  m_AnchoredPosition: {x: -0.08, y: 4.009}
+  m_AnchoredPosition: {x: -0.08, y: 4.1}
   m_SizeDelta: {x: 160, y: 20}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &1869291963

+ 4 - 0
Assets/BowArrow/Scripts/Manager/GameMgr.cs

@@ -41,6 +41,10 @@ public class GameMgr : MonoBehaviour
         if (ShootCheck.ins) ShootCheck.ins.AdjustNormalOrHightMode();
     }
 
+    void OnDestroy() {
+        AimHandler.ins?.BanControlObjRotate(false);
+    }
+
     void FixedUpdate()
     {
         gameMode.Update();