Пример #1
0
 public void SetData(string msg, MsgConfirm yescb, object conobj, Action nocb)
 {
     msgText.text = msg;
     confirmObj   = conobj;
     yesCb        = yescb;
     noCb         = nocb;
     this.Center();
     GRoot.inst.AddChild(this);
     UIUtil.ShowDialogAnim(this);
 }
Пример #2
0
 public static void CreateMsgDialog(string msg, MsgConfirm ycb, object conobj, Action ncb)
 {
     (UIPackage.CreateObject("Base", "ShowMsgDialog").asCom as ShowMsgDialog).SetData(msg, ycb, conobj, ncb);
 }