| | |
| | | using UnityEngine; |
| | | using Cysharp.Threading.Tasks; |
| | | using UnityEngine; |
| | | using UnityEngine.UI; |
| | | using System.Collections.Generic; |
| | | |
| | |
| | | var heroConfig = HeroConfig.Get(heroID); |
| | | qualityBG.SetSprite("herocBG" + heroConfig.Quality); |
| | | |
| | | var sprite = UILoader.LoadSprite("HeroHead", HeroSkinConfig.Get(hero.SkinID).RectangleIcon); |
| | | if (sprite == null) |
| | | { |
| | | // 内网未配置时 |
| | | heroIcon.SetSprite("herohead_big_default"); |
| | | } |
| | | else |
| | | { |
| | | heroIcon.overrideSprite = sprite; |
| | | } |
| | | UILoader.LoadSprite("HeroHead", HeroSkinConfig.Get(hero.SkinID).RectangleIcon, heroIcon, "herohead_big_default").Forget(); |
| | | |
| | | if (star == 0) |
| | | { |
| | |
| | | { |
| | | HeroUIManager.Instance.SortHeroList(); |
| | | HeroUIManager.Instance.selectHeroGuid = guid; |
| | | UIManager.Instance.OpenWindow<HeroTrainBaseWin>(); |
| | | UIManager.Instance.OpenWindowAsync<HeroTrainBaseWin>().Forget(); |
| | | } |
| | | |
| | | void ClickEmpty() |
| | |
| | | } |
| | | return; |
| | | } |
| | | UIManager.Instance.OpenWindow<HeroPosWin>(); |
| | | UIManager.Instance.OpenWindowAsync<HeroPosWin>().Forget(); |
| | | } |
| | | void OnSkillCast(bool isfighting) |
| | | { |