|
@@ -142,17 +142,17 @@ namespace GFGGame
|
|
|
itemdata = MatchingOneDataManager.Instance.DressPropTransInfoDic[itemGObj.name];
|
|
|
}
|
|
|
MatchingOneDataManager.Instance.itemGameObjs[i].transform.position = itemdata.position;
|
|
|
- if (MatchingOneDataManager.Instance.itemGameObjs[i].name == "Role")
|
|
|
- {
|
|
|
- if(itemdata.position.y >= -5 || itemdata.position.y <= 5)
|
|
|
- {
|
|
|
- MatchingOneDataManager.Instance.itemGameObjs[i].transform.position = new Vector3(itemdata.position.x,0,0);
|
|
|
- }
|
|
|
- if(itemdata.position.x >= -5 || itemdata.position.x <= 5)
|
|
|
- {
|
|
|
- MatchingOneDataManager.Instance.itemGameObjs[i].transform.position = new Vector3(0, MatchingOneDataManager.Instance.itemGameObjs[i].transform.position.y, 0);
|
|
|
- }
|
|
|
- }
|
|
|
+ //if (MatchingOneDataManager.Instance.itemGameObjs[i].name == "Role")
|
|
|
+ //{
|
|
|
+ // if(itemdata.position.y >= -5 || itemdata.position.y <= 5)
|
|
|
+ // {
|
|
|
+ // MatchingOneDataManager.Instance.itemGameObjs[i].transform.position = new Vector3(itemdata.position.x,0,0);
|
|
|
+ // }
|
|
|
+ // if(itemdata.position.x >= -5 || itemdata.position.x <= 5)
|
|
|
+ // {
|
|
|
+ // MatchingOneDataManager.Instance.itemGameObjs[i].transform.position = new Vector3(0, MatchingOneDataManager.Instance.itemGameObjs[i].transform.position.y, 0);
|
|
|
+ // }
|
|
|
+ //}
|
|
|
MatchingOneDataManager.Instance.itemGameObjs[i].transform.Rotate(itemGObj.transform.eulerAngles.x, itemGObj.transform.eulerAngles.y, itemdata.rotationZ);
|
|
|
MatchingOneDataManager.Instance.itemGameObjs[i].transform.localScale = itemdata.scale;
|
|
|
PhotographUtil.Instance.ChangeLayer(MatchingOneDataManager.Instance.itemGameObjs[i], (i+1) * PhotographDataManager.layerCount, "up");
|