using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class UI_TopPanel : BasePanel { /// /// 标题 /// private TextMeshProUGUI TitleText; protected override void Awake() { base.Awake(); TitleText = GetControl("标题"); } public void OnInit() { Debug.Log("我被初始化了OnInit"); } public override void ShowMe() { base.ShowMe(); } public override void HideMe() { base.HideMe(); } }