diff --git a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs index 1ee89f31..12e1fee6 100644 --- a/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs +++ b/UnityProject/Assets/GameScripts/HotFix/GameLogic/Actor/ActorHItem.cs @@ -126,7 +126,7 @@ namespace GameLogic // 移除超时的Buff foreach (var buff in m_tempBuffList) { - //Log.Debug("移除Buff列表:" + buff.m_Id); + Log.Debug("移除Buff列表:" + buff.m_Id); if (buff.m_EffectGo != null) { GameObject.Destroy(buff.m_EffectGo); @@ -359,10 +359,14 @@ namespace GameLogic /// private void LoadTextureMatRes(int key) { + // 先隐藏其他 for (int i = 1; i < m_rectCar.childCount; i++) { - m_rectCar.transform.GetChild(i).gameObject.SetActive(false); + if (m_rectCar.transform.GetChild(i).gameObject.name.Contains("0")) + { + m_rectCar.transform.GetChild(i).gameObject.SetActive(false); + } } m_rectCar.transform.GetChild(key).gameObject.SetActive(true);