YanCheng_Metrology/Assets/Scripts/Project/UI/UI_Panel/UI_SessionPanel.cs

42 lines
836 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using TMPro;
using UnityEngine;
public class UI_SessionPanel : BasePanel
{
// Start is called before the first frame update
void Start()
{
//Init();
}
/// <summary>
/// 初始化
/// </summary>
public void Init()
{
//GetControl<TextMeshPro>("Text_DialogBox").text = "你好";
}
public override void ShowMe()
{
}
public override void HideMe()
{
}
/// <summary>
/// 按钮点击
/// </summary>
/// <param name="btnName"></param>
protected override void OnClick(string btnName)
{
switch (btnName)
{
case "ContinueBtn":
GetControl<TextMeshPro>("Text_DialogBox").text = "你好我是xx供电公司员工这是我的工作证。现在我们要对贵户高压电能计量装置进行安装";
break;
}
}
}