using UnityEngine; using XGame.Framework.Map; using XGame.Framework.ObjectCollection; namespace FL.Map.UI { public class BossBattleInfoVM : EntityViewModel, IEntityBattleInfoVM { public UnityEngine.UI.Image HpImg { get; private set; } public FL.Map.UI.BattleInfoBuffList BuffList { get; private set; } public UnityEngine.UI.Image ShieldImg { get; private set; } public GameObject TimeRoot { get; private set; } public TMPro.TextMeshProUGUI TimeText { get; private set; } protected override void OnInit(IObjectCollector collector) { HpImg = collector.GetComponent("HpImg"); BuffList = collector.GetComponent("BuffList"); ShieldImg = collector.GetComponent("ShieldImg"); TimeRoot = collector.GetGameObject("TimeRoot"); TimeText = collector.GetComponent("TimeText"); } } }