123456789101112131415161718192021 |
- using UnityEngine;
- using XGame.Framework.Map;
- using XGame.Framework.ObjectCollection;
- namespace FL.Map.UI
- {
- public class PlayerBattleInfoVM : 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<UnityEngine.UI.Image>("HpImg");
- BuffList = collector.GetComponent<FL.Map.UI.BattleInfoBuffList>("BuffList");
- ShieldImg = collector.GetComponent<UnityEngine.UI.Image>("ShieldImg");
- }
- }
- }
|