protected override void OnDestroy() { recoverAll(); if (null != mCurItems) { mCurItems.Clear(); } if (null != mItemPool) { mItemPool.Dispose(); } if (null != mItemDatas) { for (int i = 0; i < mItemDatas.Count; i++) { mItemDatas[i].Dispose(); } mItemDatas.Clear(); } if (null != mOnItemClickLua) { mOnItemClickLua.Dispose(); mOnItemClickLua = null; } if (null != mItemSelectStatus) { ObjPools.Recover(mItemSelectStatus); } if (null != mOnSelectChangeLua) { mOnSelectChangeLua.Dispose(); mOnSelectChangeLua = null; } base.OnDestroy(); }
protected override void OnDestroy() { if (null != mOnValueChangeLua) { mOnValueChangeLua.Dispose(); } if (null != mPool) { mPool.Dispose(); } base.OnDestroy(); }