| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using Cysharp.Threading.Tasks;
|
| | | using UnityEngine;
|
| | | using UnityEngine.UI;
|
| | | public class HeroSkinRoleCell : MonoBehaviour
|
| | |
| | | public void Display(HeroConfig heroConfig, int index)
|
| | | {
|
| | | selectImg.SetActive(HeroSkinChooseWin.selectIndex == index);
|
| | | heroModel.Create(heroConfig.SkinIDList[index], heroConfig.UIScale);
|
| | | heroModel.Create(heroConfig.SkinIDList[index], heroConfig.UIScale).Forget();
|
| | | selectBtn.AddListener(() =>
|
| | | {
|
| | | var ui = UIManager.Instance.GetUI<HeroSkinChooseWin>();
|