using UnityEngine; using UnityEngine.UI; using System; using System.Collections; public class AlertPanel : PopUpPanel { public enum AlertPanelType { Bordered, Fluted } public Animator panelType; public const uint TIME_OUT = 0; public const uint YES = 0x1; public const uint NO = 0x2; public const uint OK = 0x4; public const uint CANCEL = 0x8; public uint flags; protected string _okLabel; protected string _yesLabel; protected string _noLabel; protected string _cancelLabel; public Button okBtn; public Button yesBtn; public Button noBtn; public Button cancelBtn; public Button closeBtn; public Text yesBtnText; public Text noBtnText; public Text cancelBtnText; public Text titleText; public Sprite redBtn, greenBtn; public Text contentText; protected float oldTextHeight = 0; protected event AlertPanelCloseDelegate closeEvent; public object data; void Awake() { InitBackGround(transform); Transform panelTrans = transform.FindChild("Panel"); panelType = panelTrans.GetComponent(); yesBtn = panelTrans.FindChild("BtnContainer/YesBtn").GetComponent