12345678910111213141516171819202122232425 |
- 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<UnityEngine.UI.Image>("HpImg");
- BuffList = collector.GetComponent<FL.Map.UI.BattleInfoBuffList>("BuffList");
- ShieldImg = collector.GetComponent<UnityEngine.UI.Image>("ShieldImg");
- TimeRoot = collector.GetGameObject("TimeRoot");
- TimeText = collector.GetComponent<TMPro.TextMeshProUGUI>("TimeText");
- }
- }
- }
|