This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-06-05 16:43:28 +08:00
parent 2d2bf65dd1
commit 6a0fa5fbfe

View File

@ -137,7 +137,7 @@ namespace GameLogic
// 计算位置
r.anchorMin = new Vector2(0.5f, 0.5f);
r.anchorMax = new Vector2(0.5f, 0.5f);
r.anchoredPosition = new Vector2(127, 190 - 65 - i * (109 - 5f));
r.anchoredPosition = new Vector2(127, 175 - 65 - i * (109 - 5f));
r.localPosition = new Vector3(r.localPosition.x, r.localPosition.y, 0);
actorHItem.OnInit(i);
DataGameSceneManager.Instance.m_DicTeamList.Add((i + 1).ToString(), actorHItem);
@ -654,7 +654,7 @@ namespace GameLogic
var hItemActor = hItemActors[i].actor;
//hItemActor.m_Index = i;
var rectTransform = hItemActor.gameObject.GetComponent<RectTransform>();
Vector2 targetPosition = new Vector2(127, 190 - i * (109 - 5f));
Vector2 targetPosition = new Vector2(127, 175 - i * (109 - 5f));
targetPositions[rectTransform] = targetPosition;
// 让UI层级与排序一致