lvjincheng 4 år sedan
förälder
incheckning
dcdf49f9a1

+ 11 - 11
Assets/BowArrow/Scenes/Home.unity

@@ -849,9 +849,9 @@ RectTransform:
   m_Father: {fileID: 1590289749}
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
-  m_AnchorMin: {x: 0, y: 0}
-  m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 8.780488, y: 0}
+  m_AnchorMin: {x: 0, y: 1}
+  m_AnchorMax: {x: 0, y: 1}
+  m_AnchoredPosition: {x: 0, y: -20}
   m_SizeDelta: {x: 0, y: 0}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &219397737
@@ -9729,7 +9729,7 @@ RectTransform:
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
   m_AnchorMin: {x: 0, y: 0}
   m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 96.34146, y: 0}
+  m_AnchoredPosition: {x: 0, y: 0}
   m_SizeDelta: {x: 0, y: 0}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &1698308730
@@ -13678,9 +13678,9 @@ RectTransform:
   m_Father: {fileID: 605008605224943949}
   m_RootOrder: 0
   m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
-  m_AnchorMin: {x: 0, y: 0}
-  m_AnchorMax: {x: 0, y: 0}
-  m_AnchoredPosition: {x: 0, y: 0}
+  m_AnchorMin: {x: 0, y: 1}
+  m_AnchorMax: {x: 0, y: 1}
+  m_AnchoredPosition: {x: 0, y: -20}
   m_SizeDelta: {x: 0, y: 40}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!1 &2473343858706513567
@@ -13924,7 +13924,7 @@ RectTransform:
   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: -1344, y: 0}
+  m_AnchoredPosition: {x: -1324, y: 0}
   m_SizeDelta: {x: 1280, y: 720}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &3050641587586513357
@@ -14063,7 +14063,7 @@ RectTransform:
   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: 1212, y: 0}
+  m_AnchoredPosition: {x: 1232, y: 0}
   m_SizeDelta: {x: 1280, y: 720}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!1 &3421407917499391122
@@ -14424,7 +14424,7 @@ RectTransform:
   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: -65, y: -20}
+  m_AnchoredPosition: {x: -45, y: -20}
   m_SizeDelta: {x: 280, y: 380}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &4588957129696768245
@@ -15825,7 +15825,7 @@ RectTransform:
   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: -66, y: 0}
+  m_AnchoredPosition: {x: -46, y: 0}
   m_SizeDelta: {x: 1280, y: 720}
   m_Pivot: {x: 0.5, y: 0.5}
 --- !u!114 &9206080643797954131

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

@@ -14,6 +14,12 @@ public class HomeView : MonoBehaviour
     [SerializeField] GameObject friendTip;
     public static HomeView ins;
 
+    void Awake() {
+        if (CommonConfig.needToExamine) {
+            GameObject.Find("LeftPanel/Item (1)").gameObject.SetActive(false);
+        }
+    }
+
     void Start()
     {
         ins = this;

+ 8 - 1
Assets/BowArrow/Scripts/View/TopBarView.cs

@@ -11,7 +11,14 @@ public class TopBarView : MonoBehaviour
 
     void Start()
     {
-        
+        if (CommonConfig.needToExamine) {
+            Transform tf = transform.Find("TopBar");
+            for (int i = 0; i < tf.childCount; i++) {
+                if (tf.GetChild(i).name.StartsWith("Item")) {
+                    tf.GetChild(i).gameObject.SetActive(false);
+                }
+            }
+        }
     }
 
     void Update()