From 3f2cd27c5dfb3b450245bf1a37fc1b3414031c7c Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期三, 11 二月 2026 11:03:58 +0800
Subject: [PATCH] 小游戏适配 资源系统改造

---
 Main/System/Battle/UIComp/BossHeadCell.cs |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/Main/System/Battle/UIComp/BossHeadCell.cs b/Main/System/Battle/UIComp/BossHeadCell.cs
index 6041171..9d2caea 100644
--- a/Main/System/Battle/UIComp/BossHeadCell.cs
+++ b/Main/System/Battle/UIComp/BossHeadCell.cs
@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using UnityEngine;
 using UnityEngine.UI;
+using Cysharp.Threading.Tasks;
 
 public class BossHeadCell : MonoBehaviour
 {
@@ -28,6 +29,23 @@
         // TODO YYL
         // imgFrame璺焛mgDecoration绛夊够澧冮榿瀹屾垚涔嬪悗鍐嶆潵鍋�
     }
+
+    public async UniTask SetTeamHeroAsync(TeamHero teamHero)
+    {
+        if (null == teamHero)
+        {
+            SetDefault();
+            return;
+        }
+
+        HeroSkinConfig heroSkinConfig = teamHero.skinConfig;
+        imgIcon.sprite = await UILoader.LoadSpriteAsync("HeroHead", heroSkinConfig.SquareIcon);
+        if (this == null) return;
+        txtLv.text = Language.Get("Arena22", teamHero.level);
+
+        // TODO YYL
+        // imgFrame璺焛mgDecoration绛夊够澧冮榿瀹屾垚涔嬪悗鍐嶆潵鍋�
+    }
     
     public void SetDefault()
     {

--
Gitblit v1.8.0