using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UI_CheckTaskPanel : BasePanel { public void Init() { GetControl("Text_Content").text = "请输入用户名"; } protected override void OnClick(string btnName) { switch (btnName) { case "Button_Close": Destroy(gameObject); break; } } // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }