public void Init(UIBindRoot root, BaseUIBindContainer parent = null, int arrayIndex = -1) { this.root = root; DataSet container = this.GetContainer(parent, arrayIndex); Init(container); }
public virtual void InitOnArray(UIBindRoot root, BaseUIBindArray array, int index) { }
public virtual void InitOnGroup(UIBindRoot root, BaseUIBindGroup group, int arrayIndex) { }
public virtual void InitOnRoot(UIBindRoot root) { }
public UIDataCellCallback(UIBindRoot root, string bindFuncName, UIDataCell cell) { this.Root = root; this.BindFuncName = bindFuncName; this.Cell = cell; }
//初始化,事件注册在root下 public override void InitOnGroup(UIBindRoot root, BaseUIBindGroup group, int arrayIndex) { this.root = root; cellIndex = root.CreateCellOnGroup(this.gameObject, this.GetBindFunctionName(), this.bindDataName, group, this.GetParam()); }
//初始化,事件注册在root下 public override void InitOnRoot(UIBindRoot root) { this.root = root; cellIndex = root.CreateCellOnRoot(this.gameObject, this.GetBindFunctionName(), this.bindDataName, this.GetParam()); }
//初始化,事件注册在Array下 public override void InitOnArray(UIBindRoot root, BaseUIBindArray array, int index) { this.root = root; cellIndex = root.CreateCellOnArray(this.gameObject, this.GetBindFunctionName(), this.bindDataName, array, index, this.GetParam()); }