示例#1
0
 public void setCallback(Action <int> callBack)
 {
     this.callBack = callBack;
     View.GoodsListView list = gameObject.GetComponent <View.GoodsListView>();
     if (list != null)
     {
         list.setCallback(callBack);
     }
 }
示例#2
0
 private void initGoodsList()
 {
     View.GoodsListView list = transform.FindChild("Content").FindChild("GoodsList").GetComponent <View.GoodsListView>();
     if (list != null)
     {
         list.setCallback(callBack);
     }
     list.ExceptId = _id;
 }