除了甜甜圈其他都处理了

This commit is contained in:
DESKTOP-SAJ6RKV\Administrator 2025-05-12 16:20:48 +08:00
parent bebc509023
commit 2482950b04

View File

@ -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
/// <param name="key"></param>
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);