礼包bug修改

main
zhangaotian 2025-03-25 19:41:34 +08:00
parent 1395bb93ea
commit 5bc0fb8e0f
1 changed files with 5 additions and 3 deletions

View File

@ -227,13 +227,12 @@ public class UI_GiftShopPurchaseController : UIWindow
{
StartCountdown();
}
// 滚动文字
RefreshScrollText();
ImageTimeBg.gameObject.IsScaleShow(openData.ShopItem.IsLimitedTimeGoods());
// 商品名称
Text_ItemName.text = openData.ShopItem.Name;
@ -247,7 +246,10 @@ public class UI_GiftShopPurchaseController : UIWindow
}
// 礼包价格
Text_Price.text = openData.ShopItem.GetPriceCount().ToString();
var price = openData.ShopItem.GetPriceCount();
Text_Price.text = IsMoneyEnough()
? price.ToString()
: $" <color=#FF0000>{price}</color>";
// 礼包价格图标
var priceIconPath = priceItem.CoinIconPath;