拓展更新
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user