using System; using System.Collections; using UnityEngine; using UnityEngine.UI; namespace Rokid.MRC { public enum ConfirmType { None, OneConfirm, TwoConfirmCancel, OneCancel, } //弹窗界面 public class UIConfirmPanel : UIPanelBase { private Text txtTitle; private RectTransform rectConfirm; private Text txtButtonConfrim; private RectTransform rectCancel; private Text txtButtonCancel; private Text txtContent; private Action confirmCallBack; private Action cancelCallBack; private float XOffest = 170; private ConfirmType curConfirmType; public override void OnInit() { base.OnInit(); txtTitle = transform.Find("DisplayView/TxtTittle").GetComponent(); rectConfirm = transform.Find("DisplayView/BtnConfirm").GetComponent(); txtButtonConfrim = transform.Find("DisplayView/BtnConfirm/Text").GetComponent(); rectConfirm.GetComponent