BossBattleInfoVM.cs 1009 B

12345678910111213141516171819202122232425
  1. using UnityEngine;
  2. using XGame.Framework.Map;
  3. using XGame.Framework.ObjectCollection;
  4. namespace FL.Map.UI
  5. {
  6. public class BossBattleInfoVM : 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. public GameObject TimeRoot { get; private set; }
  12. public TMPro.TextMeshProUGUI TimeText { get; private set; }
  13. protected override void OnInit(IObjectCollector collector)
  14. {
  15. HpImg = collector.GetComponent<UnityEngine.UI.Image>("HpImg");
  16. BuffList = collector.GetComponent<FL.Map.UI.BattleInfoBuffList>("BuffList");
  17. ShieldImg = collector.GetComponent<UnityEngine.UI.Image>("ShieldImg");
  18. TimeRoot = collector.GetGameObject("TimeRoot");
  19. TimeText = collector.GetComponent<TMPro.TextMeshProUGUI>("TimeText");
  20. }
  21. }
  22. }