using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class BtnMail : MonoBehaviour { public Button btnMail; public Button btnDel; public Text txtMail; // Start is called before the first frame update void Awake() { btnDel.gameObject.SetActive(false); } void Start() { btnMail.onClick.AddListener(() => { //ÏÔʾ //UIManager.Instance.ShowPanel<>(); }); } // Update is called once per frame void Update() { } }