public void HideDialog(DialogIndex index) { BaseDialog dialog = dicDialog[index]; dialog.HideDialog(() => { dialog.gameObject.SetActive(false); lsdialogShow.Remove(dialog); }); }
public void HideDialog(BaseDialog dialog, Action callBack = null) { dialog.HideDialog(callBack); lsShow.Remove(dialog); Time.timeScale = 1; }