From d767e2b9de8503add829c104eb396a54ea594737 Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Thu, 26 Jun 2025 13:06:25 +0800 Subject: [PATCH] 1 --- .../Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs index 0f61e382..4caa2775 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs @@ -115,7 +115,7 @@ namespace GameLogic #endregion private Dictionary targetPositions = new Dictionary(); - private float animationSpeed = 130f; // Adjust this value to control the speed of the animation + private float animationSpeed = 140f; // Adjust this value to control the speed of the animation protected override void OnCreate() { base.OnCreate(); @@ -143,7 +143,7 @@ namespace GameLogic // 计算位置 r.anchorMin = new Vector2(0.5f, 0.5f); r.anchorMax = new Vector2(0.5f, 0.5f); - r.anchoredPosition = new Vector2(127, 373 - 65 - i * (130 - 5f)); + r.anchoredPosition = new Vector2(127, 373 - 65 - i * (140 - 5f)); r.localPosition = new Vector3(r.localPosition.x, r.localPosition.y, 0); actorHItem.OnInit(i); DataGameSceneManager.Instance.m_DicTeamList.Add((i + 1).ToString(), actorHItem); @@ -709,7 +709,7 @@ namespace GameLogic var hItemActor = hItemActors[i].actor; //hItemActor.m_Index = i; var rectTransform = hItemActor.gameObject.GetComponent(); - Vector2 targetPosition = new Vector2(127, 373 - i * (130 - 5f)); + Vector2 targetPosition = new Vector2(127, 373 - i * (140 - 5f)); targetPositions[rectTransform] = targetPosition; // 让UI层级与排序一致