拓展更新

This commit is contained in:
2025-07-24 15:39:56 +08:00
parent 4fab84e68f
commit 4e74ac3ce2

View File

@@ -41,5 +41,19 @@ namespace CreatGame.UI
{
onSelectCallback?.Invoke(m_buttonList.IndexOf(btn));
}
public int Count => m_buttonList.Count;
public Transform this[int index]
{
get
{
if (index < 0 || index >= m_buttonList.Count)
{
return null;
}
return m_buttonList[index].transform;
}
}
}
}