using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class PublicPanel : BasePanel { //¹Ø±Õ public Button btnClose; //¹«¸æÎĵµ public Text txtPubLic; public override void Init() { btnClose.onClick.AddListener(() => { UIManager.Instance.HidePanel(); }); } public void UpdatePanel(string str) { txtPubLic.text = str; } }