public void HandleDeleteAnchorSet(AnchorSet anchorSet) { AnchorSet = anchorSet; string message = string.Format("Are you sure you want to delete anchor set {0}?", anchorSet.name); ConfirmationDialog.ShowDialog(ConfirmationDialogPrefab, SceneRoot, message, (result) => { AnchorSetManager.Instance.IsEnabled = true; Debug.Log(string.Format("Delete dialog closed, result: {0}", result)); if (result) { StartCoroutine(AnchorSetManager.Instance.DeleteAnchorSet(AnchorSet)); } }); }