Prechádzať zdrojové kódy

将ShowChoose界面远程协助还原

蓝色星空 1 rok pred
rodič
commit
4ac08bf1b0

+ 1 - 1
Assets/Game/ShowChoose/ShowChoose.prefab

@@ -673,7 +673,7 @@ MonoBehaviour:
   m_OnCullStateChanged:
     m_PersistentCalls:
       m_Calls: []
-  m_Sprite: {fileID: 21300000, guid: bbb94407477a4124d95de329eb515c03, type: 3}
+  m_Sprite: {fileID: 21300000, guid: 8ddf450524845724f9bf13ccf123cc04, type: 3}
   m_Type: 0
   m_PreserveAspect: 0
   m_FillCenter: 1

+ 4 - 13
Assets/Game/ShowXunJian/StartXunJian.cs

@@ -42,15 +42,9 @@ namespace GHZLangChao
             if (mInspectionService == null)
                 mInspectionService = this.GetService<IInspectionService>();
 
-            if (mInspectionService.InspectionInfo.id == PlayerPrefs.GetInt("XunJianInspectionInfoID"))
-            {
-                var step = PlayerPrefs.GetInt("ShowXunJianStep");
-                if (step != 0)
-                {
-                    ToggleList[step - 1].isOn = true;
-                    currentUIItem = ItemList[step - 1];
-                }
-            }
+            var step = PlayerPrefs.GetInt("ShowXunJianStep");
+            ToggleList[step - 1].isOn = true;
+            currentUIItem = ItemList[step - 1];
 
             foreach (Button btn in ScreenshotBtnList)
             {
@@ -70,10 +64,7 @@ namespace GHZLangChao
             Titile_Btn.onClick.AddListener(ClickTitle);
             //CancelBtn.onClick.AddListener(ClickCancel);
 
-            if (mInspectionService.InspectionInfo.id == PlayerPrefs.GetInt("XunJianInspectionInfoID"))
-            {
-                Init(mInspectionService.InspectionInfo);
-            }
+            Init(mInspectionService.InspectionInfo);
         }
         private void Update()
         {