除了甜甜圈其他都处理了
This commit is contained in:
parent
bebc509023
commit
2482950b04
@ -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,11 +359,15 @@ namespace GameLogic
|
||||
/// <param name="key"></param>
|
||||
private void LoadTextureMatRes(int key)
|
||||
{
|
||||
|
||||
// 先隐藏其他
|
||||
for (int i = 1; i < m_rectCar.childCount; i++)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user