From 0c96302df9a57e076578b754d63430a1f40d0f99 Mon Sep 17 00:00:00 2001 From: "DESKTOP-SAJ6RKV\\Administrator" Date: Mon, 26 May 2025 23:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DBug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs | 1 - .../HotFix/GameLogic/Manager/DataGameSceneManager.cs | 1 + .../Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs | 5 +++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs index dc001960..d142408d 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs @@ -86,7 +86,6 @@ namespace GameLogic m_tmpAllValue.text = m_AllPush.ToString(); - // 播放序列图,通过Gpu的形式 LoadTextureMatRes(textureId + 1); } diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs index 177c62a1..6b75ca10 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Manager/DataGameSceneManager.cs @@ -692,6 +692,7 @@ namespace GameLogic var winActorTeam = OnCheckWinTeam(); + Log.Debug("获胜阵营的teamid" + winActorTeam.m_Index); string winActorName = GetStrs(winActorTeam.m_Index); Log.Debug("获胜阵营的名称:" + winActorName); diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs index 46ea7a1b..2485b8da 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/UI/UIGameBattle.cs @@ -99,6 +99,7 @@ namespace GameLogic UpdateGameScoreValue(); //RestHItemFunc(); + // 创建横板列表 for (int i = 0; i < DataGameSceneManager.Instance.m_Strs.Count; i++) { @@ -393,8 +394,8 @@ namespace GameLogic // Set the target positions for the HItemActors based on their new order for (int i = 0; i < hItemActors.Count; i++) { - var hItemActor = hItemActors[i].actor; - hItemActor.m_Index = i + 1; + var hItemActor = hItemActors[i].actor; + hItemActor.m_Index = i; var rectTransform = hItemActor.gameObject.GetComponent(); Vector2 targetPosition = new Vector2(0, 435 - i * (109 - 5f)); targetPositions[rectTransform] = targetPosition;