| | |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | |
| | | public class StoreCell : MonoBehaviour |
| | |
| | | freeButton.SetActive(false); |
| | | lockTip.text = ""; |
| | | |
| | | priceIcon.SetIconWithMoneyType(storeData.storeConfig.MoneyType); |
| | | if (storeData.storeConfig.MoneyType <= 0) |
| | | { |
| | | priceIcon.SetItemSprite(storeData.storeConfig.CostItemID); |
| | | } |
| | | else |
| | | { |
| | | priceIcon.SetIconWithMoneyType(storeData.storeConfig.MoneyType); |
| | | } |
| | | priceText.text = storeData.storeConfig.MoneyNum.ToString(); |
| | | |
| | | if (storeData.storeConfig.MoneyOriginal == 0) |
| | |
| | | else |
| | | { |
| | | StoreModel.Instance.buyShopID = shopID; |
| | | UIManager.Instance.OpenWindow<BuyItemWin>(); |
| | | UIManager.Instance.OpenWindowAsync<BuyItemWin>().Forget(); |
| | | } |
| | | } |
| | | } |