123456789101112131415161718192021222324252627282930313233343536373839 |
- using UnityEngine;
- using XGame.Framework.Map;
- using XGame.Framework.ObjectCollection;
- namespace FL.Map.UI
- {
- public class MainMapUIVM : EntityViewModel
- {
- public Canvas Canvas { get; private set; }
- public Transform MonsterRoot { get; private set; }
- public Transform PlayerRoot { get; private set; }
- public Transform CombatValRoot { get; private set; }
- public GameObject BossTimeRoot { get; private set; }
- public UnityEngine.UI.Image BossTimeImg { get; private set; }
- public TMPro.TextMeshProUGUI BossTimeTxt { get; private set; }
- public UnityEngine.UI.Image MapProgressImg { get; private set; }
- public GameObject CurProgressImg { get; private set; }
- public TMPro.TextMeshProUGUI MapNameTxt { get; private set; }
- public UnityEngine.UI.Button ChallengeBtn { get; private set; }
- public Transform BossRoot { get; private set; }
- public GameObject MapInfoRoot { get; private set; }
- public GameObject MapProgress { get; private set; }
- protected override void OnInit(IObjectCollector collector)
- {
- Canvas = collector.GetComponent<Canvas>("Canvas");
- MonsterRoot = collector.GetGameObject("MonsterRoot").transform;
- PlayerRoot = collector.GetGameObject("PlayerRoot").transform;
- CombatValRoot = collector.GetGameObject("CombatValRoot").transform;
- MapProgressImg = collector.GetComponent<UnityEngine.UI.Image>("MapProgressImg");
- CurProgressImg = collector.GetGameObject("CurProgressImg");
- MapNameTxt = collector.GetComponent<TMPro.TextMeshProUGUI>("MapNameTxt");
- ChallengeBtn = collector.GetComponent<UnityEngine.UI.Button>("ChallengeBtn");
- MapInfoRoot = collector.GetGameObject("MapInfoRoot");
- MapProgress = collector.GetGameObject("MapProgress");
- BossRoot = collector.GetGameObject("BossRoot").transform;
- }
- }
- }
|