using UnityEngine; using UnityEngine.UI; using ZXKFramework; public class ModeSelectionPanel : UIBase { public override string Name => "ModeSelectionPanel"; public override string GroupName => UIGroupLiao.Main.ToString(); GameModel gameModel; Transform choicePanel; public override void HandleEvent(string name, object data){} public override void Init(IUIManager uictrl) { base.Init(uictrl); gameModel = GetModel(); choicePanel = transform.FindFirst("ChoicePanel"); } public override void Show() { base.Show(); transform.FindFirst("TitleText").text = gameModel.mainData.GetModuleName(gameModel.GetId()); string[] md = gameModel.mainData.GetModeGroup(gameModel.GetId()); for (int i = 0; i < choicePanel.childCount; i++) { Button btn = choicePanel.GetChild(i).GetComponent