public void RefreshWings() { this.SortWingList(); int num = 0; while (num < this.m_listPool.Items.get_Count() && num < this.m_listDataWings.get_Count()) { wings dataWings = this.m_listDataWings.get_Item(num); WingCell component = this.m_listPool.Items.get_Item(num).GetComponent <WingCell>(); component.RefreshWing(dataWings); num++; } }
private void InitScrollRect() { int num = false.CompareTo(true); this.SortWingList(); this.m_listPool.Create(this.m_listDataWings.get_Count(), delegate(int index) { if (index < this.m_listDataWings.get_Count() && index < this.m_listPool.Items.get_Count()) { wings dataWings = this.m_listDataWings.get_Item(index); WingCell component = this.m_listPool.Items.get_Item(index).GetComponent <WingCell>(); component.RefreshWing(dataWings); } }); }