public override void OnDestroy() { base.OnDestroy(); foreach (KeyValuePair <int, UICardItem> item in m_gridList) { item.Value.Destroy(); } foreach (KeyValuePair <OperateCardList.TYPE, UIWindow> item in m_wndList) { item.Value.Destroy(); } foreach (KeyValuePair <int, GameObject> item in m_sellImageList) { GameObject.Destroy(item.Value); } m_clickList.Clear(); m_sortList.Clear(); m_cardSortUI.Destroy(); }
public override void OnDestroy() { base.OnDestroy(); GameObject.Destroy(m_item); UIGrid.Destroy(m_friendGridList); foreach (UIWindow item in m_friendList.Values) { item.Destroy(); } m_friendList.Clear(); m_cardSortUI.Destroy(); }
public override void OnDestroy() { base.OnDestroy(); foreach (KeyValuePair <int, UICardItem> item in m_gridList) { item.Value.Destroy(); } m_cardSortUI.Destroy(); m_gridBgTexture = null; m_extendBagTexture = null; }