| | |
| | | public class SkinStoreCell : MonoBehaviour |
| | | { |
| | | [SerializeField] Image skinImage; |
| | | [SerializeField] Button skinBtn; //跳转皮肤界面 |
| | | [SerializeField] Image skinFrame; |
| | | [SerializeField] Text skinName; |
| | | [SerializeField] Text heroName; |
| | |
| | | |
| | | priceIcon.SetIconWithMoneyType(storeData.storeConfig.MoneyType); |
| | | priceText.text = storeData.storeConfig.MoneyNum.ToString(); |
| | | |
| | | |
| | | skinBtn.AddListener(()=> |
| | | { |
| | | HeroUIManager.Instance.selectForPreviewHeroID = heroID; |
| | | HeroUIManager.Instance.selectSkinIndex = HeroDebutManager.Instance.GetSkinIndexInHeroConfig(heroID, skinID); |
| | | UIManager.Instance.OpenWindow<HeroBestBaseWin>(1); |
| | | }); |
| | | } |
| | | |
| | | void BuyGoods(int shopID) |