using XGame.Framework.Map; using XGame.Framework.ObjectCollection; namespace FL.Map.UI { public class MonsterBattleInfoVM : 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; } protected override void OnInit(IObjectCollector collector) { HpImg = collector.GetComponent("HpImg"); BuffList = collector.GetComponent("BuffList"); ShieldImg = collector.GetComponent("ShieldImg"); } } }