guodong 2 жил өмнө
parent
commit
b48b1713c1

+ 4 - 2
GameClient/Assets/Game/HotUpdate/DressUp/DressUpObjDataCache.cs

@@ -282,7 +282,7 @@ namespace GFGGame
                 }
                 if (!hasFaXing)
                 {
-                    Add(10000);
+                    Add(ConstItemID.DEFULT_FA_XING); 
                 }
                 if (!hasLianYiQun)
                 {
@@ -342,7 +342,9 @@ namespace GFGGame
             if (IsSuitPic)
             {
                 SuitCfg suitCfg = SuitCfgArray.Instance.GetCfg(_suitId);
-                DressUpUtil.UpdateBody(suitCfg.picRes, _sceneObj, !string.IsNullOrEmpty(suitCfg.aniRes), suitCfg.effRes);
+                var hasAniRes = !string.IsNullOrEmpty(suitCfg.aniRes);
+                var res = hasAniRes ? suitCfg.aniRes : suitCfg.picRes;
+                DressUpUtil.UpdateBody(res, _sceneObj, hasAniRes, suitCfg.effRes);
             }
             else
             {

+ 3 - 7
GameClient/Assets/Game/HotUpdate/DressUp/SceneController.cs

@@ -54,13 +54,14 @@ namespace GFGGame
             }
         }
 
-        public static void UpdateRole(int[] equipDatas, GameObject sceneObj, bool needSetMask = false, int[] exceptTypes = null, bool showAni = true, GameObject parentObj = null, bool reset = true)
+
+        public static void UpdateRole(List<int> equipDatas, GameObject sceneObj, bool needSetMask = false, int[] exceptTypes = null, bool showAni = true, GameObject parentObj = null, bool reset = true)
         {
             if (reset)
             {
                 Reset(sceneObj);
             }
-            int count = equipDatas.Length;
+            int count = equipDatas.Count;
             for (int i = 0; i < count; i++)
             {
                 int id = (int)equipDatas[i];
@@ -77,11 +78,6 @@ namespace GFGGame
             DressUpUtil.UpdateBody(null, sceneObj, false, null, needSetMask, parentObj);
         }
 
-        public static void UpdateRole(List<int> equipDatas, GameObject sceneObj, bool needSetMask = false, int[] exceptTypes = null, bool showAni = true, GameObject parentObj = null, bool reset = true)
-        {
-            UpdateRole(equipDatas.ToArray(), sceneObj, needSetMask, exceptTypes, showAni, parentObj, reset);
-        }
-
         public static void UpdateDialogBg(string value, GameObject sceneObj)
         {
             Transform tf = sceneObj.transform.Find("Bg");