using Unity.VisualScripting; using UnityEngine; using UnityEngine.UI; namespace Plugins.CxShine.page { public class PageManagerComp : MonoBehaviour { public static PageManagerComp singleton; public GameObject pageContainer; public string pagePrefabLocation; public GameObject FirstPagePrefab; public GameObject gameObject3dContainer; public GameObject debugButton; public string debugWindowPrefabPath; public void HideUI() { pageContainer.SetActive(false); } public void DisplayUI() { pageContainer.SetActive(true); } private void Awake() { gameObject.SetActive(true); } private void Start() { singleton = this; OpenPage(FirstPagePrefab); // 如果有配置调试按钮界面的话 if (debugButton != null) debugButton.GetOrAddComponent