| | |
| | | |
| | | nameText.text = heroConfig.Name; |
| | | qualityImg.SetSprite("heroheadBG" + heroConfig.Quality); |
| | | var sprite = UILoader.LoadSprite("HeroHead", HeroSkinConfig.Get(skinID).SquareIcon); |
| | | |
| | | UILoader.LoadSpriteAsync("HeroHead", HeroSkinConfig.Get(skinID).SquareIcon).ContinueWith(sprite => |
| | | { |
| | | if (this == null || heroIcon == null) return; |
| | | if (sprite == null) |
| | | { |
| | | // 内网未配置时 |
| | |
| | | } |
| | | |
| | | connMarkImg.SetActive(index != 0); |
| | | }).Forget(); |
| | | |
| | | connMarkImg.SetActive(index != 0); |
| | | } |
| | | |
| | | public async UniTask DisplayAsync(int heroID, int index, bool showCollect = false, int _skinID = 0) |