26 lines
474 B
C#
26 lines
474 B
C#
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<PublicPanel>();
|
|
});
|
|
}
|
|
|
|
public void UpdatePanel(string str)
|
|
{
|
|
txtPubLic.text = str;
|
|
}
|
|
}
|