PlayerBattleInfoVM.cs 744 B

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