Browse Source

登录界面引导报错fix

guodong 2 years ago
parent
commit
3ba9b6c9a9
1 changed files with 4 additions and 1 deletions
  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;