private void OnDestroy() { int count = this.mFreeTrans.Count; this.mFreeTrans.InsertRange(this.mFreeTrans.Count, this.mDataToTrans.Values); for (int i = count; i < this.mFreeTrans.Count; i++) { Transform transform = this.mFreeTrans[i]; if (transform != null) { UnityEngine.Object.DestroyImmediate(transform.gameObject); } } this.mFreeTrans.Clear(); this.mDataToTrans.Clear(); if (this.mDataSource != null) { this.mDataSource.Clear(); } this.mgridItem = null; this.mSelectItem = null; this.mfnOnChangeRow = null; this.fnonClickSubItem = null; this.SelectItem = null; }
public void BindCustomCallBack(UIGrid.OnUpdateDataRow fn_ChangeRow) { this.mfnOnChangeRow = fn_ChangeRow; this.mbCustomGrid = true; }