/// <summary> /// 显示新增背包列表 /// </summary> public void ShowAddNewInventoryList() { for (int i = 0; i < 10; i++) { UISolt.Instantiate() .Parent(Content) .LocalIdentity() .ApplySelfTo(self => { //self.Init(); self.Show(); mSlotList.Add(self); }); } }
/// <summary> /// 显示背包列表 /// </summary> public void ShowInventoryList() { mSlotList = new List <UISolt>(); for (int i = 0; i < GameData.InventoryCount; i++) { UISolt.Instantiate() .Parent(Content) .LocalIdentity() .ApplySelfTo(self => { //self.Init(); self.Show(); mSlotList.Add(self); }); } }