public void ActionPointOrientationUpdated(NamedOrientation orientation) { try { ActionPoint actionPoint = ProjectManager.Instance.GetActionPointWithOrientation(orientation.Id); actionPoint.UpdateOrientation(orientation); OnActionPointUpdated?.Invoke(this, new ActionPointUpdatedEventArgs(actionPoint)); OnProjectChanged?.Invoke(this, EventArgs.Empty); } catch (KeyNotFoundException ex) { Debug.LogError(ex); Notifications.Instance.ShowNotification("Failed to update action point orientation", ex.Message); return; } }