using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using XFramework; public class PromptTextTest : MonoBehaviour { // Start is called before the first frame update void Start() { UIManager ui = new UIManager(); ui.Push(new TestPanel()); } // Update is called once per frame void Update() { } } public class TestPanel : BasePanel { Button testButton; public TestPanel():base(new UIType("Panel_TestPanel")) { } protected override void InitEvent() { ActivePanel.GetComponentInChildren