除了甜甜圈其他都处理了
This commit is contained in:
parent
bebc509023
commit
2482950b04
@ -126,7 +126,7 @@ namespace GameLogic
|
|||||||
// 移除超时的Buff
|
// 移除超时的Buff
|
||||||
foreach (var buff in m_tempBuffList)
|
foreach (var buff in m_tempBuffList)
|
||||||
{
|
{
|
||||||
//Log.Debug("移除Buff列表:" + buff.m_Id);
|
Log.Debug("移除Buff列表:" + buff.m_Id);
|
||||||
if (buff.m_EffectGo != null)
|
if (buff.m_EffectGo != null)
|
||||||
{
|
{
|
||||||
GameObject.Destroy(buff.m_EffectGo);
|
GameObject.Destroy(buff.m_EffectGo);
|
||||||
@ -359,11 +359,15 @@ namespace GameLogic
|
|||||||
/// <param name="key"></param>
|
/// <param name="key"></param>
|
||||||
private void LoadTextureMatRes(int key)
|
private void LoadTextureMatRes(int key)
|
||||||
{
|
{
|
||||||
|
|
||||||
// 先隐藏其他
|
// 先隐藏其他
|
||||||
for (int i = 1; i < m_rectCar.childCount; i++)
|
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(i).gameObject.SetActive(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_rectCar.transform.GetChild(key).gameObject.SetActive(true);
|
m_rectCar.transform.GetChild(key).gameObject.SetActive(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user