|
@@ -173,7 +173,10 @@ namespace GFGGame
|
|
|
{
|
|
|
//propIDList.Add(AllDressIDInfoList[i].ItemId);
|
|
|
//transDataList.Add(AnalysisStringToTransform(AllDressIDInfoList[i].ClientPosition));
|
|
|
- DressPropTransInfoDic.Add(AllDressIDInfoList[i].ItemId.ToString(), AnalysisStringToTransform(AllDressIDInfoList[i].ClientPosition));
|
|
|
+ if (!DressPropTransInfoDic.ContainsKey(AllDressIDInfoList[i].ItemId))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(AllDressIDInfoList[i].ItemId.ToString(), AnalysisStringToTransform(AllDressIDInfoList[i].ClientPosition));
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -187,7 +190,10 @@ namespace GFGGame
|
|
|
//transDataList.Add(AnalysisStringToTransform(AllDressIDInfoList[i].ClientPosition));
|
|
|
if(GetIDListByString(AllDressIDInfoList[i].ItemId).Count > 1)
|
|
|
{
|
|
|
- DressPropTransInfoDic.Add(AllDressIDInfoList[i].ItemId.ToString(), AnalysisStringToTransform(AllDressIDInfoList[i].ClientPosition));
|
|
|
+ if (!DressPropTransInfoDic.ContainsKey(AllDressIDInfoList[i].ItemId))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(AllDressIDInfoList[i].ItemId.ToString(), AnalysisStringToTransform(AllDressIDInfoList[i].ClientPosition));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
else if (itemCfg != null && itemCfg.subType == ConstDressUpItemType.BEI_JING)
|
|
@@ -205,7 +211,10 @@ namespace GFGGame
|
|
|
//记录道具和位置信息
|
|
|
//propIDList.Add(GetIDByString(AllDressIDInfoList[i].ItemId));
|
|
|
//transDataList.Add(AnalysisStringToTransform(AllDressIDInfoList[i].ClientPosition));
|
|
|
- DressPropTransInfoDic.Add(AllDressIDInfoList[i].ItemId.ToString(), AnalysisStringToTransform(AllDressIDInfoList[i].ClientPosition));
|
|
|
+ if (!DressPropTransInfoDic.ContainsKey(AllDressIDInfoList[i].ItemId))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(AllDressIDInfoList[i].ItemId.ToString(), AnalysisStringToTransform(AllDressIDInfoList[i].ClientPosition));
|
|
|
+ }
|
|
|
}
|
|
|
else if(itemCfg == null)
|
|
|
{
|
|
@@ -253,6 +262,34 @@ namespace GFGGame
|
|
|
roleTransFormData.scale = itemGameObjs[i].transform.localScale;
|
|
|
TransformDataList.Add(roleTransFormData);
|
|
|
DressPropNameList.Add(itemGameObjs[i].name);
|
|
|
+ if (!DressPropTransInfoDic.ContainsKey(itemGameObjs[i].name))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(itemGameObjs[i].name, roleTransFormData);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (itemGameObjs[i].name == "Border")
|
|
|
+ {
|
|
|
+ itemData.position = itemGameObjs[i].transform.position;
|
|
|
+ itemData.rotationZ = itemGameObjs[i].transform.eulerAngles.z;
|
|
|
+ itemData.scale = itemGameObjs[i].transform.localScale;
|
|
|
+ TransformDataList.Add(roleTransFormData);
|
|
|
+ DressPropNameList.Add(itemGameObjs[i].name);
|
|
|
+ if (!DressPropTransInfoDic.ContainsKey(itemGameObjs[i].name))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(BorderID.ToString(), itemData);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else if (itemGameObjs[i].name == "Npc")
|
|
|
+ {
|
|
|
+ itemData.position = itemGameObjs[i].transform.position;
|
|
|
+ itemData.rotationZ = itemGameObjs[i].transform.eulerAngles.z;
|
|
|
+ itemData.scale = itemGameObjs[i].transform.localScale;
|
|
|
+ TransformDataList.Add(roleTransFormData);
|
|
|
+ DressPropNameList.Add(itemGameObjs[i].name);
|
|
|
+ if (!DressPropTransInfoDic.ContainsKey(itemGameObjs[i].name))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(NpcID.ToString(), itemData);
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -261,8 +298,12 @@ namespace GFGGame
|
|
|
itemData.scale = itemGameObjs[i].transform.localScale;
|
|
|
TransformDataList.Add(itemData);
|
|
|
DressPropNameList.Add(itemGameObjs[i].name);
|
|
|
+ if(!DressPropTransInfoDic.ContainsKey(itemGameObjs[i].name))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(itemGameObjs[i].name, itemData);
|
|
|
+ }
|
|
|
}
|
|
|
- DressPropTransInfoDic.Add(itemGameObjs[i].name, itemData);
|
|
|
+
|
|
|
}
|
|
|
//SetNameToIdList();
|
|
|
}
|
|
@@ -284,10 +325,14 @@ namespace GFGGame
|
|
|
{
|
|
|
return -2;
|
|
|
}
|
|
|
- else if (!isNumeric)
|
|
|
+ else if (vl == "Npc")
|
|
|
{
|
|
|
return -3;
|
|
|
}
|
|
|
+ else if(!isNumeric)
|
|
|
+ {
|
|
|
+ return -4;
|
|
|
+ }
|
|
|
|
|
|
id = int.Parse(parts[0]);
|
|
|
}
|
|
@@ -590,7 +635,10 @@ namespace GFGGame
|
|
|
{
|
|
|
//propIDList.Add(colloctItemInfo.ItemId);
|
|
|
//transDataList.Add(MatchingCompetitionDataManager.Instance.AnalysisStringToTransform(colloctItemInfo.ClientPosition));
|
|
|
- DressPropTransInfoDic.Add(colloctItemInfo.ItemId, MatchingCompetitionDataManager.Instance.AnalysisStringToTransform(colloctItemInfo.ClientPosition));
|
|
|
+ if(!DressPropTransInfoDic.ContainsKey(colloctItemInfo.ItemId))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(colloctItemInfo.ItemId, MatchingCompetitionDataManager.Instance.AnalysisStringToTransform(colloctItemInfo.ClientPosition));
|
|
|
+ }
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -602,7 +650,10 @@ namespace GFGGame
|
|
|
//记录道具和位置信息
|
|
|
//propIDList.Add(colloctItemInfo.ItemId);
|
|
|
//transDataList.Add(MatchingCompetitionDataManager.Instance.AnalysisStringToTransform(colloctItemInfo.ClientPosition));
|
|
|
- DressPropTransInfoDic.Add(colloctItemInfo.ItemId, MatchingCompetitionDataManager.Instance.AnalysisStringToTransform(colloctItemInfo.ClientPosition));
|
|
|
+ if (!DressPropTransInfoDic.ContainsKey(colloctItemInfo.ItemId))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(colloctItemInfo.ItemId, MatchingCompetitionDataManager.Instance.AnalysisStringToTransform(colloctItemInfo.ClientPosition));
|
|
|
+ }
|
|
|
}
|
|
|
else if (itemCfg != null && itemCfg.subType == ConstDressUpItemType.BEI_JING)
|
|
|
{
|
|
@@ -618,7 +669,10 @@ namespace GFGGame
|
|
|
//记录道具和位置信息
|
|
|
//propIDList.Add(colloctItemInfo.ItemId);
|
|
|
//transDataList.Add(MatchingCompetitionDataManager.Instance.AnalysisStringToTransform(colloctItemInfo.ClientPosition));
|
|
|
- DressPropTransInfoDic.Add(colloctItemInfo.ItemId, MatchingCompetitionDataManager.Instance.AnalysisStringToTransform(colloctItemInfo.ClientPosition));
|
|
|
+ if (!DressPropTransInfoDic.ContainsKey(colloctItemInfo.ItemId))
|
|
|
+ {
|
|
|
+ DressPropTransInfoDic.Add(colloctItemInfo.ItemId, MatchingCompetitionDataManager.Instance.AnalysisStringToTransform(colloctItemInfo.ClientPosition));
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|