|
@@ -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");
|