public override void updateItem(GameObject item, int index) { ButtonStoreProp button = item.GetComponent <ButtonStoreProp>(); button.fatherWindow = fatherWindow; button.init(props[index], type, indexx); }
public override void initButton(int i) { if (nodeList[i] == null) { nodeList[i] = NGUITools.AddChild(gameObject, propPerfab); } nodeList[i].name = StringKit.intToFixString(i + 1); ButtonStoreProp button = nodeList[i].GetComponent <ButtonStoreProp>(); button.fatherWindow = fatherWindow; button.init(props[i], type, indexx); }