소스 검색

登录界面引导报错fix

guodong 2 년 전
부모
커밋
3ba9b6c9a9
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      GameClient/Assets/Game/HotUpdate/Controller/GuideController.cs

+ 4 - 1
GameClient/Assets/Game/HotUpdate/Controller/GuideController.cs

@@ -65,7 +65,10 @@ namespace GFGGame
         private static GList targetList = null;
         public static bool TryGuide(GComponent target, string guideKey, int index, string guideStr = null, int listIndex = -1, bool checkPriorIndex = true, float yTxt = 0, bool justHint = false)
         {
-
+            if(!GameGlobal.DataInited)
+            {
+                return false;
+            }
             GuideCfg cfg = GuideCfgArray.Instance.GetCfg(guideKey);
             if (GuideDataManager.currentGuideId != 0 && GuideDataManager.currentGuideId != cfg.id) return false;
             GRoot.inst.touchable = false;