| | |
| | | |
| | | |
| | | |
| | | public void ShowFace(ImageEx imgFace, UIEffectPlayer spine, UIFrame uiFrame, EllipseMask ellipseMask, int id) |
| | | public async UniTask ShowFace(ImageEx imgFace, UIEffectPlayer spine, UIFrame uiFrame, EllipseMask ellipseMask, int id) |
| | | { |
| | | PhantasmPavilionType type = PhantasmPavilionType.Face; |
| | | int UnlockWay = GetUnlockWay(type, id); |
| | |
| | | if (!HeroSkinConfig.HasKey(skinID)) |
| | | return; |
| | | HeroSkinConfig skinConfig = HeroSkinConfig.Get(skinID); |
| | | var sprite = UILoader.LoadSprite("HeroHead", skinConfig.SquareIcon); |
| | | var sprite = await UILoader.LoadSpriteAsync("HeroHead", skinConfig.SquareIcon); |
| | | if (sprite == null) |
| | | { |
| | | Show(imgFace, spine, uiFrame, resourceType, "herohead_default", null, ellipseMask); |