示例#1
0
 protected override void OnInitUI()
 {
     btnList = GetChild <FList>("btnList");
     btnList.SetVirtual();
     btnList.SetState <ItemData, FButton>((index, data, comp) =>
     {
         comp.SetText(data.btnName);
         comp.OnClick(data.btnFunc);
     });
 }