using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class TipPanel : BasePanel { public Button btnSure; public Text txtTip; public override void Init() { btnSure.onClick.AddListener(() => { UIManager.Instance.HidePanel(); }); } public void ChangeInfo(string str) { txtTip.text= str; } }