guodong 2 лет назад
Родитель
Сommit
ac6eda6889

+ 2 - 2
GameClient/Assets/Game/HotUpdate/DressUp/DressUpUtil.cs

@@ -424,9 +424,9 @@ namespace GFGGame
             return gameObj;
         }
 
-        private static void TryAddEffectObj(string res, string objName, GameObject parentObj, int sortingOrder, bool toAni)
+        private static void TryAddEffectObj(string res, string objName, GameObject parentObj, int sortingOrder, bool inAni)
         {
-            var resPath = ResPathUtil.GetDressUpEffectPath(res, toAni);
+            var resPath = ResPathUtil.GetDressUpEffectPath(res, inAni);
             if (!VEngine.Versions.Contains(resPath))
             {
                 return;

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Utils/ResPathUtil.cs

@@ -111,9 +111,9 @@ namespace GFGGame
         {
             return $"{ANIMATION_DIR_PATH}/DressUp/{res}/{res}.{extName}";
         }
-        public static string GetDressUpEffectPath(string res, bool toAni = false, string extName = "prefab")
+        public static string GetDressUpEffectPath(string res, bool inAni = false, string extName = "prefab")
         {
-            if(toAni)
+            if(inAni)
             {
                 return $"{EFFECT_DIR_PATH}/DressUpAni/{res}/{res}.{extName}";
             }