protected override void Init() { firstKeyUP = false; base.Init(); //清理之前的道具 ItemUIList.Init(); //更新商店 base.UpdateBusinessman(); //显示包裹道具 List <PlayGoods> playGoodsList = playerState.PlayerAllGoods.Where(temp => temp.GoodsLocation == GoodsLocation.Package).ToList(); ResetItems(playGoodsList); }
protected override void Init() { firstKeyUP = false; base.Init(); //清理之前的道具 ItemUIList.Init(); //更新商店 base.UpdateBusinessman(); //显示商品道具 if (businessman != null) { List <PlayGoods> allPlayGoodses = new List <PlayGoods>(); allPlayGoodses.AddRange(businessman.BaseList); //首先添加基础商品 allPlayGoodses.AddRange(businessman.SellPropsList); //然后添加回购商品 ResetItems(allPlayGoodses); } }