public void HideDialog(DialogName dlgName, string instanceId, object param = null, bool forceImediate = false) { GUIDialogBase foundDlg = listDialogs.Find(dlg => dlg.DialogName == dlgName); if (foundDlg == null) { Debug.LogError("Can not find dialog:" + dlgName.ToString()); return; } foundDlg.Hide(param, instanceId, forceImediate); }