using UnityEngine; using UnityEngine.UI; namespace AibisDream { public class MainPanel : MonoBehaviour, IUIPanel { public bool IsOpen => gameObject.activeSelf; public bool IsCloseable => false; #region 面板控制 public void Show() { gameObject.SetActive(true); } public void Hide() { gameObject.SetActive(false); } #endregion private void Awake() { RegisterButton(); } private void RegisterButton() { // 为按钮注册事件 var topBar = transform.Find("Top Bar"); topBar.Find("Setting").GetComponent