MonsterBattleInfoVM.cs 726 B

1234567891011121314151617181920
  1. using XGame.Framework.Map;
  2. using XGame.Framework.ObjectCollection;
  3. namespace FL.Map.UI
  4. {
  5. public class MonsterBattleInfoVM : EntityViewModel, IEntityBattleInfoVM
  6. {
  7. public UnityEngine.UI.Image HpImg { get; private set; }
  8. public FL.Map.UI.BattleInfoBuffList BuffList { get; private set; }
  9. public UnityEngine.UI.Image ShieldImg { get; private set; }
  10. protected override void OnInit(IObjectCollector collector)
  11. {
  12. HpImg = collector.GetComponent<UnityEngine.UI.Image>("HpImg");
  13. BuffList = collector.GetComponent<FL.Map.UI.BattleInfoBuffList>("BuffList");
  14. ShieldImg = collector.GetComponent<UnityEngine.UI.Image>("ShieldImg");
  15. }
  16. }
  17. }