Browse Source

修改剧情加载资源时判断

leiyasi 1 year ago
parent
commit
ea533f5f74

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Friend/FriendView.cs

@@ -280,6 +280,7 @@ namespace GFGGame
                 UpdateScene(customSuit);
             }
         }
+
         private void UpdateScene(CustomSuitData suitSavedData)
         {
             Transform transform = _sceneObject.transform.Find("Role");

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/MainStory/StoryDialogView.cs

@@ -928,7 +928,7 @@ namespace GFGGame
             {
                 StoryDialogCfg cfg = _stepListToRead[i];
 
-                if (cfg.bgRes.Length > 0)
+                if (cfg.bgRes.Length > 0 && cfg.bgRes != "0")
                 {
                     string bgRes = ResPathUtil.GetSceneBgPath(cfg.bgRes);
                     if (!resList.Contains(bgRes))
@@ -937,7 +937,7 @@ namespace GFGGame
                     }
                 }
 
-                if (cfg.aniRes.Length > 0)
+                if (cfg.aniRes.Length > 0 && cfg.aniRes != "0")
                 {
                     string res = cfg.aniRes.Split('/')[1];
                     string aniRes = ResPathUtil.GetStoryDialogCGPath(cfg.aniRes, res);