コード例 #1
0
 public void OnHideDialog(BaseDialog dialog)
 {
     dialog.OnHide();
     if (this.baseDialogs.Contains(dialog))
     {
         this.baseDialogs.Remove(dialog);
     }
 }
コード例 #2
0
    public void CloseDialog(BaseDialog dialog)
    {
        UIOverlay overlay = FindObjectOfType <UIOverlay>();

        if (overlay != null)
        {
            this.overlay.OnHide();
        }
        dialog.OnHide();
        if (this.dialogs.Contains(dialog))
        {
            this.dialogs.Remove(dialog);
        }
    }
コード例 #3
0
    public void CloseDialog()
    {
        BaseDialog dialog  = this.getDialogCurrent();
        UIOverlay  overlay = FindObjectOfType <UIOverlay>();

        if (overlay != null)
        {
            this.overlay.OnHide();
        }
        if (dialog != null)
        {
            dialog.OnHide();
            if (this.dialogs.Contains(dialog))
            {
                this.dialogs.Remove(dialog);
            }
        }
    }