using UnityEngine;
using UnityEngine.UI;

public class RarityStockView : MonoBehaviour
{
    private static readonly string textFormat = "{1}個";
    [SerializeField] private Text normalText;
    [SerializeField] private ProductRarity rarity;
    public ProductRarity Rarity => rarity;

    public void SetText(int price, int stock)
    {
        normalText.text = string.Format(textFormat, price, stock);
    }
}
