public void OnHideDialog(BaseDialog dialog) { dialog.OnHide(); if (this.baseDialogs.Contains(dialog)) { this.baseDialogs.Remove(dialog); } }
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); } }
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); } } }