public void InitializeActiveList() { this.ReleaseActiveList(); if (!UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ActiveController, (UnityEngine.Object)null)) { return; } this.m_ActiveSource = new MultiInvitationReceiveWindow.ActiveContent.ItemSource(); if (this.m_ActiveData != null && this.m_ActiveData.rooms != null) { for (int index = 0; index < this.m_ActiveData.rooms.Length; ++index) { MultiInvitationReceiveWindow.ActiveData.RoomData room = this.m_ActiveData.rooms[index]; if (room != null && room.isValid) { MultiInvitationReceiveWindow.ActiveContent.ItemSource.ItemParam itemParam = new MultiInvitationReceiveWindow.ActiveContent.ItemSource.ItemParam(room); if (itemParam != null && itemParam.IsValid()) { this.m_ActiveSource.Add(itemParam); } } } } this.m_ActiveController.Initialize((ContentSource)this.m_ActiveSource, Vector2.get_zero()); }
public void ReleaseActiveList() { if (UnityEngine.Object.op_Inequality((UnityEngine.Object) this.m_ActiveController, (UnityEngine.Object)null)) { this.m_ActiveController.Release(); } this.m_ActiveSource = (MultiInvitationReceiveWindow.ActiveContent.ItemSource)null; }