| | |
| | | // { |
| | | // skinID = heroConfig.SkinIDList[0]; |
| | | // } |
| | | var sprite = UILoader.LoadSprite("HeroHead", HeroSkinConfig.Get(skinID).SquareIcon); |
| | | if (sprite == null) |
| | | { |
| | | // 内网未配置时 |
| | | heroIcon.SetSprite("herohead_default"); |
| | | } |
| | | else |
| | | { |
| | | heroIcon.overrideSprite = sprite; |
| | | } |
| | | UILoader.LoadSprite("HeroHead", HeroSkinConfig.Get(skinID).SquareIcon, heroIcon, "herohead_default").Forget(); |
| | | |
| | | |
| | | if (star == 0) |
| | |
| | | } |
| | | |
| | | GameObject cellContainer; |
| | | protected void LoadPrefab() |
| | | protected async UniTask LoadPrefab() |
| | | { |
| | | if (cellContainer != null) |
| | | return; |
| | |
| | | } |
| | | if (cellContainer == null) |
| | | { |
| | | cellContainer = UIUtility.CreateWidget("HeroHeadBaseCell", "Container_HeadCell"); |
| | | cellContainer = await UIUtility.CreateWidget("HeroHeadBaseCell", "Container_HeadCell"); |
| | | |
| | | if (this == null) |
| | | { |
| | | if (cellContainer != null) |
| | | { |
| | | DestroyImmediate(cellContainer); |
| | | return; |
| | | } |
| | | } |
| | | |
| | | if (cellContainer != null) |
| | | { |