位置调整
This commit is contained in:
parent
f61e51a4f0
commit
aac39b15aa
@ -97,7 +97,7 @@ namespace GameLogic
|
||||
// 计算位置
|
||||
r.anchorMin = new Vector2(0.5f, 0.5f);
|
||||
r.anchorMax = new Vector2(0.5f, 0.5f);
|
||||
r.anchoredPosition = new Vector2(0, 465 - 65 - i * (109 - 5f));
|
||||
r.anchoredPosition = new Vector2(0, 435 - 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);
|
||||
@ -382,7 +382,7 @@ namespace GameLogic
|
||||
var hItemActor = hItemActors[i].actor;
|
||||
hItemActor.m_Index = i + 1;
|
||||
var rectTransform = hItemActor.gameObject.GetComponent<RectTransform>();
|
||||
Vector2 targetPosition = new Vector2(0, 465 - i * (109 - 5f));
|
||||
Vector2 targetPosition = new Vector2(0, 435 - i * (109 - 5f));
|
||||
targetPositions[rectTransform] = targetPosition;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user