private void FillPack(GoldBoxesPackComponent pack, GoldBoxOfferNode packNode)
 {
     pack.CardName       = packNode.specialOfferContentLocalization.Title;
     pack.SpriteUid      = packNode.specialOfferScreenLocalization.SpriteUid;
     pack.Discount       = packNode.specialOfferContent.SalePercent;
     pack.HitMarkEnabled = packNode.specialOfferContent.HighlightTitle;
     pack.BoxCount       = packNode.goldBonusOffer.Count;
     pack.Price          = $"{packNode.goodsPrice.Price:0.00} {packNode.goodsPrice.Currency}";
     pack.GoodsEntity    = packNode.Entity;
 }
        public void CreatePacks(NodeAddedEvent e, SingleNode <GoldBoxesShopTabComponent> shopNode, [JoinAll] ICollection <GoldBoxOfferNode> goods)
        {
            List <GoldBoxOfferNode> list = this.BuildList(goods);

            list.Sort(new GoldBoxNodeComparer());
            foreach (GoldBoxOfferNode node in list)
            {
                GoldBoxesPackComponent pack = Object.Instantiate <GameObject>(shopNode.component.PackPrefab, shopNode.component.PackContainer).GetComponent <GoldBoxesPackComponent>();
                this.FillPack(pack, node);
            }
        }