Пример #1
0
    void UpdatePricesUI(int id)
    {
        float  priceMod = 1 + pricesRows[id].priceSlider.value / 10;
        string format   = pricesRows[id].priceSlider.value == 0 ? "{0:N0}% (${1:N0})" : "<color=yellow>{0:N0}%</color> (${1:N0})";

        pricesRows[id].priceText.text = string.Format(format, priceMod * 100, MarketManager.GetBaseSalePrice(id) * priceMod);
        MarketManager.SetSalePriceMod(id, priceMod);
    }