예제 #1
0
 /// <summary>
 /// 显示
 /// </summary>
 /// <param name="msg"></param>
 public static void Show(string msg, Action sureCallActionT, Action cancelCallActionT)
 {
     if (Instance == null)
     {
         Debug.LogError("UGUIMessageBox.Show Instance == null");
         return;
     }
     Instance.txtMsg.text       = msg;
     Instance.SureCallAction    = sureCallActionT;
     Instance.CancelCallAction  = cancelCallActionT;
     Instance.sureBtnTxt.text   = "确定";
     Instance.cancelBtnTxt.text = "取消";
     Instance.SetWindowActive(true);
 }