private void OnDestroy() { if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ContenController, (UnityEngine.Object)null)) { this.m_ContenController.Release(); } this.m_ContenController = (ContentController)null; this.m_ItemSource = (ItemListWindow.ItemSource)null; }
private void Start() { if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ContenController, (UnityEngine.Object)null)) { return; } this.m_ItemSource = new ItemListWindow.ItemSource(); List <ItemData> items = MonoSingleton <GameManager> .Instance.Player.Items; for (int index = 0; index < items.Count; ++index) { ItemData itemData = items[index]; if (itemData.Num != 0 && itemData.Param.CheckCanShowInList()) { this.m_ItemSource.Add(new ItemListWindow.ItemSource.ItemParam(itemData)); } } this.m_ContenController.Initialize((ContentSource)this.m_ItemSource, Vector2.get_zero()); }