标签:set etc ack private find back store ble new
List<Transform> MainMenuBtn = new List<Transform>();
//遍历所有buutton按钮,改变其状态
private void ResetButtonInteractive(Transform _btn)
{
foreach (Transform kk in MainMenuBtn)
{
if (kk != _btn)
{
kk.GetComponent<Button>().interactable = true;
}
}
}
//遍历预制体子物体并添加到列表中
private void StoreMainMenuBtnData()
{
var kk = mainPanel.transform.FindChild("back/menuPanel");
foreach (Transform _kk in kk.transform)
{
if (_kk.GetComponent<Button>() != null)
{
MainMenuBtn.Add(_kk);
}
}
}
标签:set etc ack private find back store ble new
原文地址:http://www.cnblogs.com/Study088/p/7219249.html