public void ReleaseReceiveList() { if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ReceiveController, (UnityEngine.Object)null)) { this.m_ReceiveController.Release(); } this.m_ReceiveSource = (FriendPresentRootWindow.ReceiveContent.ItemSource)null; }
public void InitializeReceiveList() { this.ReleaseReceiveList(); if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ReceiveController, (UnityEngine.Object)null)) { this.m_ReceiveSource = new FriendPresentRootWindow.ReceiveContent.ItemSource(); List <FriendPresentReceiveList.Param> list = MonoSingleton <GameManager> .Instance.Player.FriendPresentReceiveList.list; for (int index = 0; index < list.Count; ++index) { FriendPresentRootWindow.ReceiveContent.ItemSource.ItemParam itemParam = new FriendPresentRootWindow.ReceiveContent.ItemSource.ItemParam(list[index]); if (itemParam.IsValid()) { this.m_ReceiveSource.Add(itemParam); } } this.m_ReceiveController.Initialize((ContentSource)this.m_ReceiveSource, Vector2.get_zero()); } if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ValueList, (UnityEngine.Object)null)) { return; } this.m_ValueList.list.SetInteractable("btn_receive", this.m_ReceiveSource.GetCount() != 0); }