private void ShowSpecificationData(AssetProductDice assetProductDice, DiceParameter diceParameter) { _specificationsField.text = string.Empty; if (diceParameter.AddingCoefficient == 0) { return; } _specificationsField.text = assetProductDice.Specifications + diceParameter.AddingCoefficient; }
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(); }