| | |
| | | [SerializeField] Image presentMoneyIcon;
|
| | | [SerializeField] Button buybtn;
|
| | | [SerializeField] Text saleTime;
|
| | | [SerializeField] Image zheImg;
|
| | | [SerializeField] Text zheText;
|
| | | [SerializeField] List<CommonItemBaisc> itemBaiscs = new List<CommonItemBaisc>();
|
| | |
|
| | | MysticalPurchaseModel.MysticalShop mysticalShop = null;
|
| | |
| | | presentMoneyIcon.SetIconWithMoneyType(mysticalShop.storeConfig.MoneyType);
|
| | | int remianTime = mysticalShop.GetRemainSellTime();
|
| | | saleTime.text = Language.Get("MysticalPurchase101", TimeUtility.SecondsToHMS(remianTime));
|
| | | if (string.IsNullOrEmpty(mysticalShop.storeConfig.SalesStatus))
|
| | | {
|
| | | zheImg.gameObject.SetActive(false);
|
| | | }
|
| | | else
|
| | | {
|
| | | zheImg.gameObject.SetActive(true);
|
| | | zheImg.SetSprite(mysticalShop.storeConfig.SalesStatus);
|
| | | zheImg.SetNativeSize();
|
| | | }
|
| | | float zhe = ((float)mysticalShop.storeConfig.MoneyNumber / mysticalShop.storeConfig.MoneyOriginal) * 10;
|
| | | zheText.text = Language.Get("MysticalPurchase102", Math.Round(zhe, 1));
|
| | | var items = storeModel.GetShopItemlistByIndex(mysticalShop.storeConfig);
|
| | | for(int i = 0; i < itemBaiscs.Count; i++)
|
| | | {
|