1
This commit is contained in:
parent
d172f3bf4a
commit
46fef5d74e
@ -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, 175 - 65 - i * (109 - 5f));
|
||||
r.anchoredPosition = new Vector2(127, 175 - 65 - i * (150 - 5f));
|
||||
r.localPosition = new Vector3(r.localPosition.x, r.localPosition.y, 0);
|
||||
actorHItem.OnInit(i);
|
||||
DataGameSceneManager.Instance.m_DicTeamList.Add((i + 1).ToString(), actorHItem);
|
||||
@ -198,7 +198,7 @@ namespace GameLogic
|
||||
{
|
||||
// 更新界面逻辑
|
||||
// 目前固定两百个点赞逻辑。
|
||||
m_tmp_ShiJianValue.text = string.Format("{0}/200", DataGameSceneManager.Instance.m_LiShiShiJianLikeCount);
|
||||
m_tmp_ShiJianValue.text = string.Format("{0}/150", DataGameSceneManager.Instance.m_LiShiShiJianLikeCount);
|
||||
|
||||
m_img_JinDu.fillAmount = (float)(DataGameSceneManager.Instance.m_LiShiShiJianLikeCount / (float)DataGameSceneManager.Instance.m_LiShiShiJianLikeCountMax);
|
||||
|
||||
@ -658,7 +658,7 @@ namespace GameLogic
|
||||
var hItemActor = hItemActors[i].actor;
|
||||
//hItemActor.m_Index = i;
|
||||
var rectTransform = hItemActor.gameObject.GetComponent<RectTransform>();
|
||||
Vector2 targetPosition = new Vector2(127, 175 - i * (109 - 5f));
|
||||
Vector2 targetPosition = new Vector2(127, 175 - i * (150 - 5f));
|
||||
targetPositions[rectTransform] = targetPosition;
|
||||
|
||||
// 让UI层级与排序一致
|
||||
|
Loading…
x
Reference in New Issue
Block a user