using TMPro; using UnityEngine; using UnityEngine.UI; public class UI_SessionPanel : BasePanel { private void Start() { Debug.Log("1111111"); } /// /// 初始化 /// public void Init(string content) { GetControl("Text_DialogBox").text = content;//在开始时给content赋值 } //public override void ShowMe() //{ //} //public override void HideMe() //{ //} /// /// 按钮点击 /// /// protected override void OnClick(string btnName) { switch (btnName) { case "ContinueBtn": Debug.Log("点击继续按钮"); GetControl("Text_DialogBox").text = "你好,我是xx供电公司员工,这是我的工作证。现在我们要对贵户高压电能计量装置进行安装"; this.gameObject.SetActive(false); break; } } }