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; } public UnityEngine.UI.Button MapTaskBtn { get; private set; } protected override void OnInit(IObjectCollector collector) { Canvas = collector.GetComponent("Canvas"); MonsterRoot = collector.GetGameObject("MonsterRoot").transform; PlayerRoot = collector.GetGameObject("PlayerRoot").transform; CombatValRoot = collector.GetGameObject("CombatValRoot").transform; MapProgressImg = collector.GetComponent("MapProgressImg"); CurProgressImg = collector.GetGameObject("CurProgressImg"); MapNameTxt = collector.GetComponent("MapNameTxt"); ChallengeBtn = collector.GetComponent("ChallengeBtn"); MapInfoRoot = collector.GetGameObject("MapInfoRoot"); MapProgress = collector.GetGameObject("MapProgress"); BossRoot = collector.GetGameObject("BossRoot").transform; MapTaskBtn = collector.GetComponent("MapTaskBtn"); } } }