浏览代码

登录界面引导报错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;