| | |
| | | using System.Collections.Generic; |
| | | using System.Collections.Generic; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | public class HeroReturnCallRateItem : MonoBehaviour |
| | | { |
| | |
| | | itemCell.SetActive(true); |
| | | itemCell.Init(new ItemCellModel(itemInfo[0], true, itemInfo[1])); |
| | | SetCountActive(itemCell, itemInfo[1]); |
| | | itemCell.button.SetListener(() => ItemTipUtility.Show(itemInfo[0])); |
| | | itemCell.SetClickListener(() => ItemTipUtility.Show(itemInfo[0])); |
| | | return; |
| | | } |
| | | |
| | |
| | | itemCell.SetActive(true); |
| | | itemCell.Init(new ItemCellModel(itemID, true, itemCount)); |
| | | SetCountActive(itemCell, itemCount); |
| | | itemCell.button.SetListener(() => ItemTipUtility.Show(itemID)); |
| | | itemCell.SetClickListener(() => ItemTipUtility.Show(itemID)); |
| | | } |
| | | else |
| | | { |
| | |
| | | HeroReturnCallRateHeroWin.worldPos = libButton.transform.position; |
| | | HeroReturnCallRateHeroWin.dataList = GetLibItemList(libID, list); |
| | | HeroReturnCallRateHeroWin.isDownShow = true; |
| | | UIManager.Instance.OpenWindow<HeroReturnCallRateHeroWin>(); |
| | | UIManager.Instance.OpenWindowAsync<HeroReturnCallRateHeroWin>().Forget(); |
| | | }); |
| | | } |
| | | } |