using UnityEngine; using UnityEngine.UI; using QFramework; using TMPro; using static OperationController; namespace QFramework.Example { public class UIChangeOperationData : UIPanelData { } public partial class UIChangeOperation : UIPanel { Color selectedColor = new Color(255f / 255f, 248f / 255f, 29f / 255f); Button curBtn; protected override void OnInit(IUIData uiData = null) { //TypeEventSystem.Global.Register(OnModuleQuit).UnRegisterWhenGameObjectDestroyed(gameObject); mData = uiData as UIChangeOperationData ?? new UIChangeOperationData(); // please add init code here for (int i = 0; i < Content.childCount; i++) { Transform transform = Content.GetChild(i); TextMeshProUGUI text = transform.Find("Label").GetComponent(); Button btn = transform.GetComponent