using UnityEngine; using UnityEngine.UI; using System; using System.Collections; public class AlertPanel : PopUpPanel { 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 Text yesBtnText; public Text noBtnText; public Text cancelBtnText; public Text titleText; public Text contentText; protected float oldTextHeight = 0; protected event AlertPanelCloseDelegate closeEvent; public object data; void Awake() { Transform panelTrans = transform.FindChild("Panel"); yesBtn = panelTrans.FindChild("BtnContainer/YesBtn").GetComponent