using GameCore; using System; using System.Collections.Generic; using TMPro; using UnityEngine; using UnityEngine.UI; public class NoticeConfirmPopupPanel : MonoBehaviour { TMP_Text text_info; TMP_Text text_title; GameObject btn_1; Button btn_confirm; GameObject btn_2; Button btn_click1; TMP_Text btn_clickleft_text; Button btn_click2; Button btn_red; TMP_Text btn_clickright_text; TMP_Text btn_clickright_text_red; Button btn_close; Action onConfirm; Action onClickLeft; Action onClickRight; Action onClose; Animation animator; class NoticeInfo { public int type; public string title; public string info; public Action onClickLeft = null; public Action onClickRight = null; public Action onClose = null; public string btn_left_text = ""; public string btn_right_text = ""; public bool RightBtnRed = false; } private static Queue noticeQuene = new Queue(); private static NoticeInfo currentNotice = null; //private string defaultLBtnText; //private string defaultRBtnText; private void Awake() { ResetUI(); } private void ResetUI() { animator = GetComponent(); text_info = transform.Find("root/text_info").GetComponent(); text_title = transform.Find("root/text_title").GetComponent(); btn_1 = transform.Find("root/btn_1").gameObject; btn_confirm = transform.Find("root/btn_1/btn_confrim/btn_green").GetComponent