// Token: 0x0600009D RID: 157 RVA: 0x000058D4 File Offset: 0x00003AD4
 public void ShowDialog(string title, string body, object callback, Action resultCallback = null)
 {
     this.OpenWindow(UIDefine.UIDialogBox, new UICallback(delegate(object window)
     {
         UIDialogBox uidialogBox = window as UIDialogBox;
         if (uidialogBox != null)
         {
             uidialogBox.Init(title, body, resultCallback);
         }
     }));
 }
                } // end OnSwitchRole

                private void OnClickDeleteRoleBtn()
                {
                    if (!ChechExitID(roleindex))
                    {
                        return;
                    }
                    // end if
                    UIDialogBox dialog = ObjectTool.InstantiateGo("DialogBoxUI", ResourcesTool.LoadPrefabUI("dialog_box_ui"),
                                                                  SceneManager.mainCanvas.rectTransform).AddComponent <UIDialogBox>();

                    dialog.SetMessage("确定删除角色!");
                    dialog.AddAction(DeleteRole);
                } // end OnClickDeleteRole
 void Awake()
 {
     Instance = this;
 }