Browse Source

初始化时增加判断

蓝色星空 1 year ago
parent
commit
b7f8caf193
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Assets/Game/ShowXunJian/StartXunJian.cs

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

@@ -73,7 +73,10 @@ namespace GHZLangChao
             Titile_Btn.onClick.AddListener(ClickTitle);
             //CancelBtn.onClick.AddListener(ClickCancel);
 
-            Init(mInspectionService.InspectionInfo);
+            if (mInspectionService.InspectionInfo.id == PlayerPrefs.GetInt("XunJianInspectionInfoID"))
+            {
+                Init(mInspectionService.InspectionInfo);
+            }
 
         }
         private void Update()