using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UI_CheckTaskPanel : BasePanel { public void Init() { GetControl<Text>("Text_Content").text = "请输入用户名"; } protected override void OnClick(string btnName) { switch (btnName) { case "Button_Close": UIManager.Instance.HidePanel<UI_CheckTaskPanel>(); break; } } }