예제 #1
0
        public override void Init(AssetProduct assetProduct, Action <ShopProductNames> purchaseHandler)
        {
            _assetProductDice       = (AssetProductDice)assetProduct;
            _onClickPurchaseHandler = purchaseHandler;

            DiceParameter diceParameter = Mediator.Instance.GameConfig.DiceParameters.Find(dice => dice.DiceID == ((AssetProductDice)assetProduct).DiceID);

            _isPurchasedDice = Mediator.Instance.CustomStatisticsManager.UserData.HasPurchasedDice(_assetProductDice.DiceID);

            _productIcon.sprite  = assetProduct.Icon;
            _signatureField.text = assetProduct.Signature;
            _priceField.text     = $"${assetProduct.Price}";

            ShowSpecificationData((AssetProductDice)assetProduct, diceParameter);

            DetectButtonSignature();
        }
예제 #2
0
 public abstract void Init(AssetProduct assetProduct, Action <ShopProductNames> purchaseHandler);